The next day preparatory
python python
import turtle
t = turtle.Pen()
t.shape("turtle")
t.up()
t.fd(-250)
t.down()
t.seth(-40)
t.pensize(25)
t.color("red")
for i in range(4):
t.circle(40,80)
t.circle(-40,80)
t.left(40)
t.fd(20)
t.circle(25,180)
t. fd ( 20)
turtle. MAINLOOP ()
python five-pointed star
import turtle
#导入海龟包
t = turtle.Pen()
t.fillcolor("red")
t.begin_fill()
time = 1
while time<=5:
t.fd(150)
t.right(144)
time += 1
t.end_fill()
turtle.mainloop()
python square
import turtle
#导入海龟包
t = turtle.Pen()
t.shape("turtle")
t.fillcolor("red")
t.begin_fill()
for i in range(3):
t.fd(100)
t.left(120)
t.end_fill()
turtle.mainloop()