Commit 1e4b5843 by BellCodeEditor

save project

parent 8bbb7726
Showing with 2 additions and 1 deletions
......@@ -6,12 +6,13 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
# 如果用户输入的账号、密码正确,提示登陆成功
while True:
e=input("输入账号")
d=input("输入密码")
if username==e and userpassword==d:
break
print("输入成功")
if username!=e:
print("账号输入错误")
continue
d=input("输入密码")
if userpassword!=d:
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