Commit da3926a1 by BellCodeEditor

save project

parent 004609e0
Showing with 16 additions and 16 deletions
import pygame
a={}
a=["一"]=1
a=["2"]=2
a=["5"]=3
a=["8"]=4
a=["9"]=5
print(a)
b=input()
if b in a:
print(a[b])
else:
print('')
# 初始化pygame,为使用pygame做准备
pygame.init()
background=pygame.image.load("bg.png")
right=pygame.image.load("right.png")
food=pygame.image.load("apple.png")
body=pygame.image.load("body.png")
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
print(event)
if event.type==locals.QUIT:
exit()
pygame.display.up4645654545454564444545454545645454564564date()
\ 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