弯弯的月亮
import turtle as tt.screensize(400,400,"black")
# t.bgcolor("black")
t.shape("turtle")
t.turtlesize(3,3,3)
t.color("yellow","green")
t.penup()
t.goto(200,200)
t.dot(100,"silver")
t.fd(20)
t.dot(100,"black")
t.goto(-100,0)
t.color("red","yellow")
t.pensize(10)
t.pendown()
t.begin_fill()
for i in range(5):
t.fd(100)
t.lt(72)
t.fd(100)
t.rt(144)
t.end_fill()
t.hideturtle()
圆圆的太阳
最好用代码格式
在这里插入代码
页:
[1]