Commit b2f4d001 by BellCodeEditor

auto save

parent c6188a1e
Showing with 27 additions and 4 deletions
print("12"+"3")
print(12+3)
\ No newline at end of file
import pygame import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() 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))
\ No newline at end of file while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
\ No newline at end of file
name = input("请输入你的名字:")
print(name)
age = input("请输入你的年龄:")
print(age)
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