#第六题
import turtle as t
t.speed(5)
t.hideturtle()
t.fillcolor("red")
t.fd(150)
t.lt(60)
t.begin_fill()
for x in range(6):
t.lt(60)
t.fd(150)
x+=1
t.end_fill()
for y in range(6):
t.color("green")
t.begin_fill()
t.fd(150)
t.lt(120)
t.fd(150)
t.lt(120)
t.fd(150)
t.lt(180)
t.fd(150)
t.end_fill()
y+=1
Python蓝桥杯例题6
于 2022-12-26 17:28:26 首次发布