#第四题
import turtle as t
t.hideturtle()
t.speed(10)
t.penup()
t.fd(50)
t.pendown()
t.lt(90)
#10和11行可以简写成t.color("red","yellow")
t.color("red")#线颜色在填充颜色之前
t.fillcolor("yellow")
t.begin_fill()
t.circle(50,360)
t.end_fill()
t.fd(-50)
x=0
for x in range(4):
t.color("red")
t.fd(100)
t.lt(90)
x+=1
Python蓝桥杯例题4
最新推荐文章于 2024-07-20 17:12:48 发布