Commit 190b6f44 by BellCodeEditor

auto save

parent c593e827
Showing with 12 additions and 4 deletions
# 勇于挑战的创造师,请运行这段代码,看看能不能将颜良、文丑加入战场? import turtle
a= ['华雄'] pen=turtle.Pen()
a.append('颜良','文丑') a=["red","orange","yellow","green"]
print(a) screen=turtle.Screen()
pen.speed(80)
for i in range(1,300):
pen.forward(i)
pen.pencolor(a[i%4])
pen.right(91)
pen.hideturtle()
turtle.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