Commit 0b2dee19 by BellCodeEditor

save project

parent b8f8a286
Showing with 6 additions and 5 deletions
username = "diy1.py" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "45745321976541" # 保存在服务器数据库中的用户密码(正确的密码)
while True:
if i>0
name=input("输入账号")
# 请用input()实现用户输入账号、密码的功能
passwond=input("输入密码")
i-=1
if name==username and passwond==userpassword:
print("原神!启动!")
break
if name != username:
print("输入错误 xxx")
compilx()
continue
if passwond != userpassword:
print("输入错误2 xxx")
print("欢迎你")
# 如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file
else:
print("账号被锁定")
print("欢迎你")
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