Commit 0a80adad by BellCodeEditor

save project

parent dc4aa998
Showing with 14 additions and 15 deletions
username="jps" import pygame
userpassword="12345" from pygame import locals
pygame.init()
screen=pygame.display.set_mode((660,480))
while True: while True:
name= input("请输入账号") for event in pygame.event.get():
password= input("请输入密码") if event.type==locals. QUIT:
if name == username and password == userpassword:
print("登录成功") exit()
break
if name != username:
print("名称错误")
if name != username:
print("密码错误")
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