# 电脑问我们要花多长五角星,
# 用for循环画一个多长的五角星
# 1导包
import turtle
# 2。输入 告诉我们长度
# l = input("你什么长度")
# l=int(l)
# r=input("你什么眼色")
# a=input("你多少度")
# a=int(a)
turtle.color("red",'red')
turtle.speed(0)
for h in range(551):
turtle.begin_fill()
turtle.fd(h) # 0 1 2 3 4 5 6 7 8 9 10 11 12
turtle.rt(h)
turtle.end_fill()
turtle.done()
xingtai - 复习turtle input for if
最新推荐文章于 2024-01-01 10:11:51 发布