import turtle '''turtle.setup(1800,1204,0,0)#窗口 (宽,高,位置(0,0)在左上角) turtle.pensize(10) turtle.pencolor('yellow') turtle.seth(-60)#运行方向 turtle.fd(80) turtle.circle(-90,400)''' def main(): turtle.setup(1220,600,0,0) turtle.pensize(15) turtle.pencolor('blue') turtle.seth(0) run(30,50,6) def run(r,angle,times): for i in range(times): turtle.circle(r,angle) turtle.circle(-r,angle) turtle.circle(r,angle/2) turtle.circle(15,180) turtle.forward(r*2/3) main()
python turtle
猜你喜欢
转载自blog.csdn.net/qq_41760970/article/details/80310207
今日推荐
周排行