Commit 8ff1544b by BellCodeEditor

save project

parent 0fdf1208
Showing with 5 additions and 0 deletions
......@@ -3,8 +3,10 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
# 请用input()实现用户输入账号、密码的功能
while True:
if i>0:
name=input("请输入账号")
password=input("请输入密码")
i-=1
if name==userpassword and password == userpassword:
print("登录成功!")
break
......@@ -13,6 +15,9 @@ elif name !=username:
else :
print("密码输入有误,请重新输入!")
else:
print("您的账号已锁定,请带身份证来我司解锁!")
exit()
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