Commit 3a273eb5 by BellCodeEditor

save project

parent ebf330c9
Showing with 17 additions and 8 deletions
print("名字")
print("所属班级")
print("3+5_?")
\ No newline at end of file
import pygame if setheading == "right"
x += 30
# 初始化pygame,为使用pygame做准备 elif setheading == "left"
pygame.init() x -= 30
elif setheading == "up"
# 创建一个窗口 y -= 30
pygame.display.set_mode((660,480)) else:
\ No newline at end of file y += 30
position.append((x,y))
if x == apple_x and y == apple_y
apple_x = random.randint(0,660)
apple_y = random.randint(0,480)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment