Commit cf52cdf8 by BellCodeEditor

save project

parent a5a147b8
Showing with 1 additions and 1 deletions
...@@ -3,13 +3,13 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正 ...@@ -3,13 +3,13 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
i=3 i=3
while True: while True:
if i>0: if i>0:
i-=1
a=input("请输入账号") a=input("请输入账号")
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
b=input("请输入密码") b=input("请输入密码")
if a==username and b==userpassword: if a==username and b==userpassword:
print("登录成功") print("登录成功")
break break
continue
if a!=username: if a!=username:
print("用户名不正确,请重新输入!") print("用户名不正确,请重新输入!")
continue continue
......
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