摘要: from turtle import * def square(size=50, rbg='blue'): pencolor(rbg) for i in range(4): fd(size) left(90) setup(800,600) speed(0) for i in range(10): s 阅读全文
posted @ 2021-06-14 18:30 豪吼吼 阅读(19) 评论(1) 推荐(0) 编辑
摘要: class StudentDoc: def __init__ (self,number,name,major,score): self.number=number self.name=name self.major=major self.score=score def info(self): pri 阅读全文
posted @ 2021-05-31 23:11 豪吼吼 阅读(25) 评论(0) 推荐(0) 编辑
摘要: with open ('data6_1.txt','r',encoding='utf-8')as f: data = f.readlines() list1=[] for line in data: a=line.strip('\n').split('\t') list1.append(a) k=l 阅读全文
posted @ 2021-05-17 23:01 豪吼吼 阅读(23) 评论(0) 推荐(0) 编辑
摘要: x1,y1 = 1.2,3.57 x2,y2 = 2.26,8.7 print('{:-^40}'.format('输出1')) print('x1 = {},y1 = {}'.format(x1,y1)) print('x2 = {},y2 = {}'.format(x2,y2)) print(' 阅读全文
posted @ 2021-04-07 21:27 豪吼吼 阅读(25) 评论(0) 推荐(0) 编辑