纯色贪吃蛇实验

 1 import turtle
 2 turtle.setup(650,350,200,200)
 3 turtle.penup()
 4 turtle.fd(-250)
 5 turtle.pendown()
 6 turtle.pensize(25)
 7 turtle.pencolor("purple")
 8 turtle.seth(-40)
 9 for i in range(4):
10 turtle.circle(40,80)
11 turtle.circle(-40,80)
12 turtle.circle(40,80/2)
13 turtle.fd(40)
14 turtle.fd(16,180)
15 turtle.fd(40 * 2/3)

 

纯色贪吃蛇实验

 

上一篇:【HTML+CSS+JS花环特效——附源代码】


下一篇:Python设计模式-简单工厂