摘要:
3 实验任务3:使用turtle库用矩形绘制花瓣 task3.py from turtle import*def square(size=50, rgb='orange'): pencolor(rgb) for i in range(4): fd(size) left(90)def main(): 阅读全文
摘要:
实验任务6:综合应用(1) —— 分数文件处理 with open('data6_1.txt','r',encoding='utf-8') as f: ls=sorted([line.replace('\n','').split('\t') for line in f.readlines()],ke 阅读全文
摘要:
task1_1. x=list(range(10)) print(f"整数输出1:",end="") for i in x: print(i,end=" ") print("\n整数输出2:",end="") for i in x: print(f"{i:02d}",end="-") print(" 阅读全文