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
# 初始化pygame,为使用pygame做准备
pygame.init()
# 创建一个窗口
pygame.display.set_mode((660,480))
\ No newline at end of file
if setheading == "right"
x += 30
elif setheading == "left"
x -= 30
elif setheading == "up"
y -= 30
else:
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