Commit 96f0fbc5 by BellCodeEditor

save project

parent a0b1b206
Showing with 3 additions and 3 deletions
......@@ -3,13 +3,13 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
while True:
uname = input("请输入用户名")
# 请用input()实现用户输入账号、密码的功能
userpassword = input("请输入密码")
if uname==username and userpassword==userpassword:
upassword = input("请输入密码")
if uname==username and userpassword==upassword:
print("登陆成功")
break
if uname!=username:
print("用户名错误")
if userpassword!=userpassword:
if userpassword!=upassword:
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