贪吃蛇前版本0.001

0

import time
import turtle

turtle.color('green')
turtle.shape('turtle')
turtle.bgcolor('black')

turtle.penup()
turtle.bk(10)
turtle.speed(0)

for x in range(10):
turtle.stamp()

while True:
for x in range(10):
turtle.fd(20)
turtle.stamp()
turtle.clearstamps(1)

turtle.right(135)

0

发表评论