-
实验8
from turtle import * from random import random def moveto(x, y): penup() goto(x, y) pendown() setup(800, 600) def rect(length, height, rgb=''): color( -
实验7
class User: count=0 def __init__(self,name='guest',password='111111',status=1): User.count+=1 self.name=name self.password=password self.status=statue -
实验8
Task3.py from turtle import * def square(size=50, rgb=(1,0.7,0)): '''绘制正方形 参数size指定边长 参数rgb指定画笔颜色 如果没有给参数,采用默认值 ''' pencolor(rgb) for i in range(4): f -
实验8
from turtle import * def square(size=50,rgb='pink'): pencolor('orange') for i in range(4): fd(size) left(90) def main(): setup(800,600) speed(0) n=5 f -
实验8 Python库应用编程与体验
实验任务3 from turtle import * def square(size=50, rgb=(0.86,0.6,0)): '''绘制正方形 参数size指定边长 参数rgb指定画笔颜色 如果没有给参数,采用默认值 ''' pencolor(rgb) for i in range(4): f -
实验7
class User: """用户""" count = 0 def __init__(self, name='guest', password=111111, status=1): User.count += 1 self.name = name self.password = password -
实验7
1 class User: 2 count=0 3 4 def __init__(self,name='guest',password='111111',status=1): 5 User.count+=1 6 self.name=name 7 self.password=password 8 se -
实验6 指针
⚽ 实验任务1:使用指针变量间接访问一维数组元素 1.1 #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; // 方式1:通过数组名和下标遍历输出数组元素 for(i=0; i<N; -
第六次实验
1. 实验任务1 #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; for(i=0; i<N; ++i) printf("%d", x[i]); printf("\n"); for( -
实验6
四、实验结论: 1. task1_1.c 1 #include <stdio.h> 2 #define N 4 3 4 int main() 5 { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 int *p; 9 10 // 方式1:通过数组名和下标遍历输出数组元素 -
实验8
from turtle import * def square(size=50, rgb='gold'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) n = 10 f -
实验六
/task.1_1// #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; // 方式1:通过数组名和下标遍历输出数组元素 for(i=0; i<N; ++i) printf("%d" -
实验8
实验任务3 from turtle import * def square(size=50, rgb='gold'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) n -
实验八 团队作业5:团队项目需求建模与系统设计(2)
项目 内容 课程班级博客链接 2019级卓越工程师班 这个作业要求链接 实验八 团队作业5—团队项目需求建模与系统设计(2) 团队名称 待宰的高羊 团队成员分工描述 何晨泽(PM):用例图、UML、系统总体结构、说明书 高杨:功能分析的四个象限、关键类的重点服务阿丽米拉:完善WBS、软件重用方案谢家 -
实验七
class User: count=0 def __init__(self,yonghuming='guest',mima='111111',status=1): User.count+=1 self.yonghuming = yonghuming self.mima = mima self.sta -
实验八
#实验4 from turtle import * def square(size=50, rgb='blue'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) n = -
实验8
#实验4 from turtle import * def square(size=50, rgb='blue'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) n = -
实验7 类和模块
class User: def __init__(self,name='guest',password=111111,status=1): self.name=name self.password=password self.status=status def info(self): print(' -
实验七
1 class user: 2 def __init__(self,name='guest',password=111111,status=1): 3 self.name = name 4 self.password = password 5 self.status = status 6 7 def -
实验七
class User(): name='guest' password='111111' def __init__(self,name,password): self.name=name self.password=password self.status=1 def info(self): if