Commit 1e1c9abf by BellCodeEditor

save project

parent a86a2977
Showing with 15 additions and 2 deletions
username = "杰哥" # 保存在服务器数据库中的用户账号(正确的账号) username = "杰哥" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "小泡芙" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "114514" # 保存在服务器数据库中的用户密码(正确的密码)
while True: while True:
name=input("请输入名字:") name=input("请输入名字:")
password=input("密码:") password=input("密码:")
if name==username and password==userpassword: if name==username and password==userpassword:
print("杰哥好!") print("杰哥好!")
break break
print("你是阿伟吗?") elif name!=username and password==userpassword:
print('杰哥,名字不对哦')
name=input("请输入名字:")
if name==username:
print("杰哥好!")
break
elif name==username and password!=userpassword:
print('杰哥,密码不对哦')
password=input("请输入密码:")
if password==userpassword:
print("杰哥好!")
break
else:
print("你是阿伟吗?")
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