Commit 74d24e7e by BellCodeEditor

save project

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