中秋之到来,月亮都在做着准备,它一天比一天慢慢地变圆,而我们身边的事也会越来越好!虽然我们不能一起吃月饼🥮,但我们可以共同拥有并欣赏一个月亮🌙!
import turtle
t = turtle.Pen()
t.speed(0)
# 用来控制画图的速度
turtle.colormode(255)
#告诉Python我们使用RGB来指定颜色
t.color((0,0,0))
#表示颜色由红色0 绿色0 蓝色0 组成巧克力颜色纯黑。
for
i
in
range(30):
t.begin_fill()
t.forward(200)
t.circle(30,180)
t.goto(0,0)
t.right(180)
t.right(12)
t.end_fill()
#在begin_fill() 到 end_fill() 之间的图形会填充我们指定的颜色
此串代码致所有努力的程序员,本次行驶的列车,停靠在中秋!