Commit 3d39ac35 by BellCodeEditor

save project

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