Commit 1d52af83 by BellCodeEditor

save project

parent 861ed1c3
Showing with 2 additions and 2 deletions
...@@ -3,10 +3,10 @@ userpassword = "8" # 保存在服务器数据库中的用户密码(正确 ...@@ -3,10 +3,10 @@ userpassword = "8" # 保存在服务器数据库中的用户密码(正确
c=3 c=3
# 请用input()实现用户输入登陆登陆成功、密码的功能 # 请用input()实现用户输入登陆登陆成功、密码的功能
while True: while True:
if c>0 if c>0:
name=input("输入账号") name=input("输入账号")
password=input("输入密码") password=input("输入密码")
c-1 c-=1
if username==name and userpassword == password: if username==name and userpassword == password:
print("登陆成功") print("登陆成功")
break break
......
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