摘要:
task 1_1 from turtle import * def move(x,y): '''画笔移动到坐标(x,y)处''' penup() goto(x,y) pendown() def draw(n,size = 100): '''绘制边长为size的正n变形''' for i in ran 阅读全文
摘要:
1 with open('data6.csv','r',encoding='gbk') as f: 2 data1 = f.read().split('\n') 3 del data1[0] 4 print('原始数据:') 5 print(data1) 6 7 for i in range(len 阅读全文
摘要:
import random print('用列表储存随机整数:') lst = [random.randint(0,100) for i in range(5)] print(lst) print('\n用整数储存随机整数:') s1 = {random.randint(0,100) for i i 阅读全文