Commit 0b2dee19 by BellCodeEditor

save project

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