用户:
MC熊孩子wibily查看:0 回复:0 评论:0 创建时间:2022-05-14T15:28:42
【作品展示】

【作品介绍】
可以画十六圈
【作品源代码】
import turtle
I = [10, 30, 50, 70, 90, 110, 130, 150, 170, 190, 210, 230, 250, 270, 290, 310]
c = ['red', 'green', 'black', 'grey', 'blue', 'purple', 'aqua', 'yellow', 'chocolate', 'cornsilk', 'ivory', 'lavenderblush', 'lightsalmon', 'lightslategray', 'lavenderblush', 'lightcoral']
for i in range(16):
turtle.penup()
turtle.goto((-10 * i), (-10 * i))
turtle.pendown()
for j in range(4):
turtle.pencolor(c[i])
turtle.forward(I[i])
turtle.left(90)
turtle.hidturtle()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn