Python : Turtle绘图-蟒蛇(代码)
作者:互联网
import turtle
turtle.setup(900,650,800,200)
turtle.penup()
turtle.fd(-250)
turtle.pendown()
turtle.pensize(25)
turtle.pencolor(“green”)
turtle.seth(-40)
turtle.circle(40,80)
turtle.circle(-40,80)
turtle.circle(40,80/2)
turtle.fd(40)
turtle.circle(16,180)
turtle.fd(40*2/3)
turtle.mainloop()
标签:Turtle,turtle,penup,Python,40,蟒蛇,fd,circle,80 来源: https://blog.csdn.net/weixin_44523387/article/details/94555230