Commit 61b6bc94 by BellCodeEditor

save project

parent 07fc70d7
Showing with 7 additions and 22 deletions
import pygame
from pygame import locals
pygame.init()
backgyound=pygame.image.load("bg.png")
backgyound=pygame.image.load("apple")
right==pygame.image.load("righ.png")
body=background=pygame.image.load("body.png")
screen=pygame.display.set_mode((660,480))
Wile event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(background,(0,0))
screen.blit(apple,(30,210))
screen.blit(right,(240,210))
screen.blit(body,(210,120))
screen.blit(body,(180,120))
screen.blit(body,(180,90))
pygame.display.update()
\ No newline at end of file
username="python"
userpassword="123456"
username=input("请输入用户名")
password=input("请输入密码")
if name=username and password==userpassword:
print("登录成功")
\ 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