Commit 45865452 by BellCodeEditor

save project

parent 1861e680
Showing with 16 additions and 10 deletions
i=5
username = "杰哥" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "114514" # 保存在服务器数据库中的用户密码(正确的密码)
while True:
name=input("请输入名字:")
if name!=username:
print('杰哥,名字不对哦')
if i>0:
name=input("请输入名字:")
password=input("密码:")
if name==username and password==userpassword:
print("杰哥好!")
break
else:
print("杰哥,密码不对哦")
i-=1
if name!=username:
print('杰哥,名字不对哦')
continue
password=input("请输入密码:")
if password==userpassword:
if password!=userpassword:
print("杰哥,密码不对哦")
continue
if name==username and password==userpassword:
print("杰哥好!")
break
else:
print("阿伟,GUN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
exit()
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