摘要: from turtle import* def square(size=50,rgb='orange'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800,600) speed(0) for i in 阅读全文
posted @ 2021-06-18 12:01 结果反弹成果 阅读(22) 评论(1) 推荐(0) 编辑
摘要: class StudentDoc: def __init__(self,studentsnumber,name,major,point): self._studentsnumber=studentsnumber self._name=name self._major=major self._poin 阅读全文
posted @ 2021-05-25 17:06 结果反弹成果 阅读(21) 评论(0) 推荐(0) 编辑
摘要: with open('data6_1.txt','r',encoding='utf-8') as f: d=f.read().split('\n') d1=[str(n).split("\t") for n in d] d1.sort(key=lambda x: x[2],reverse=True) 阅读全文
posted @ 2021-05-18 10:08 结果反弹成果 阅读(25) 评论(0) 推荐(0) 编辑
摘要: x = list(range(10)) print('整数输出1: ', end = '') for i in x: print(i, end=' ') print('\n整数输出2: ', end = '') for i in x: print(f'{i:02d}', end = '-') pri 阅读全文
posted @ 2021-04-23 12:46 结果反弹成果 阅读(22) 评论(0) 推荐(0) 编辑
摘要: print(chr(10000), end=" ") print(chr(0x025b), end=" ") print(chr(0x2708), end=" ") print(chr(0x00A5), end=" ") print(chr(0x266b)) from math import pi 阅读全文
posted @ 2021-04-02 17:26 结果反弹成果 阅读(40) 评论(0) 推荐(0) 编辑