Commit be4a4a50 by BellCodeEditor

auto save

parent 1fbf6175
Showing with 29 additions and 9 deletions
ss=int(input('你今年几岁'))
xb=int(input('你是男是女(男的输1,女的输-1)'))
ba=int(input('你爸身高多少'))
ma=int(input('你妈身高多少'))
sg=ss+xb
print(sg)
import pygame import pygame
from pygame import locals from pygame import locals
pygame.init() pygame.init()
food=pygame.image.load('apple.png')
background=pygame.image.load('bg.png')
right=pygame.image.load('right.png')
tt=pygame.image.load('body.png')
# 创建一个窗口 # 创建一个窗口
pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
while True: while True:
for event in pygame.envnt.get(): for event in pygame.event.get():
if event.type == locals.QUIT : if event.type == locals.QUIT:
exit() exit()
screen.blit(background,(0,0)) screen.blit(background,(0,0))
screen.blit(right,(0,0)) screen.blit(right,(210,60))
screen.blit(food,(0,0)) screen.blit(food,(120,240))
pygame.display.update() screen.blit(tt,(30,60))
screen.blit(tt,(60,60))
screen.blit(tt,(90,60))
screen.blit(tt,(120,60))
screen.blit(tt,(150,60))
screen.blit(tt,(180,60))
screen.blit(tt,(30,90))
screen.blit(tt,(30,120))
screen.blit(tt,(30,150))
screen.blit(tt,(30,180))
screen.blit(tt,(30,210))
screen.blit(tt,(30,240))
pygame.display.update()
\ 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