摘要:
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 阅读全文
摘要:
class StudentDoc: def __init__(self,studentsnumber,name,major,point): self._studentsnumber=studentsnumber self._name=name self._major=major self._poin 阅读全文
摘要:
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) 阅读全文
摘要:
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 阅读全文