2021-10-08|486阅|作者:Tanghcai|举报 摘要:turtle画画功能
from turtle import *
from time import sleep
speed(10)
pensize(2)
pencolor("red")
penup()
goto(-300, 0)
pendown()
goto(300, 0)
penup()
goto(0, -300)
pendown()
goto(0, 300)
penup()
goto(0, 0)
pendown()
circle(20, 180)
setheading(-180)
circle(40, 180)
setheading(0)
circle(60, 180)
setheading(-180)
circle(100, 180)
setheading(0)
circle(140, 180)
sleep(5)