其他分享
首页 > 其他分享> > 纯色贪吃蛇实验

纯色贪吃蛇实验

作者:互联网

 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)

 

 

标签:turtle,200,circle,40,贪吃蛇,fd,实验,80,纯色
来源: https://www.cnblogs.com/gniygnahz/p/15361640.html