Commit e8985f9c by BellCodeEditor

save project

parent 451726b6
Showing with 17 additions and 3 deletions
......@@ -3,14 +3,14 @@
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
"""
import turtle
colors=["red","orange","cyan","green"]
colors=["red","orange","cyan","purple"]
pen = turtle.Pen()
# 请创造师在下面接着创作
a=3
a=5
for i in range(1,300):
pen.pencolor(colors[i%4])
pen.forward(a)
pen.right(100)
pen.right(147)
a+=1
# 隐藏画笔,保存画布
pen.hideturtle()
......
a="刘备"
a="刘备"
b="关羽"
c="张飞"
d=["刘备","关羽","张飞"]
a1=["刘备",161,9.1]
b1=["关羽",160,8.5]
c1=["张飞",166,8.3]
d1=[a1,b1,c1]
d[0]="关羽"
d[1]="刘备"
for i range (len(d)):
print(d[i])
\ 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