Commit 7fe0bfda by BellCodeEditor

save project

parent b33efccf
Showing with 4 additions and 16 deletions
""" i=9
使用turtle模块画图 j=9
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果 print(i,'*',j,'=',i*j)
""" \ No newline at end of file
import turtle as l
l.speed(0)
l.bgcolor("black")
hi=['green','blue','orange','red']
for i in range(1,500):
l.pencolor(hi[i%4])
l.forward(i)
l.right(91)
l.hideturtle()
l.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