Commit 0a80adad by BellCodeEditor

save project

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