Commit 6f05d215 by BellCodeEditor

auto save

parent 117607c7
Showing with 9 additions and 11 deletions
"""
使用turtle模块画图
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
"""
import turtle as t
# 请创造师在下面接着创作
import turtle as t
screen=t.Screen()
screen.bgcolor("black")
colors=["red","orange","yellow","green"]
for i in range(3000):
t.speed(100)
t.color(colors[i%4])
t.speed(1000)
t.forward(i)
i+=0.01
t.right(31)
i+=1
t.right(181)
# 隐藏画笔,保存画布
t.hideturtle()
t.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment