用户:
正直的泡泡泥cIbM查看:0 回复:3 评论:0 创建时间:2021-12-07T11:07:12
【作品展示】

【作品介绍】
阿巴阿巴。。。。。。
【作品源代码】
import random
import turtle
colors=['green','blue','purple','red']
t=turtle.Pen()
a=turtle.Pen()
turtle.bgcolor('black')
t.setheading(90)
a.setheading(90)
for i in range(30):
t.pencolor(colors[i%3])
t.forward(20)
t.left(i*1.5)
a.pencolor(random.choice(colors))
a.forward(20)
a.right(i*1.5)
turtle.done
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn