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()

上一篇:pyhton画三角形


下一篇:Python : Turtle绘图-太极图(代码)