Commit 45865452 by BellCodeEditor

save project

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