2021年8月24日
摘要: import time scale=50 print('{:-^25}'.format('执行开始')) # print("执行开始".center(scale//2,'-')) start=time.perf_counter() for i in range(50): str1=i*'*' str 阅读全文
posted @ 2021-08-24 11:22 crystal_yxj 阅读(25) 评论(0) 推荐(0)
摘要: 题目要求: 使用turtle库,绘制一个风轮效果,其中,每个风轮内角为45度,风轮边长150像素。 我的代码: import turtle turtle.setup(500,500,100,200) for i in range(4): turtle.fd(150) turtle.right(90) 阅读全文
posted @ 2021-08-24 08:51 crystal_yxj 阅读(611) 评论(0) 推荐(0)