Commit 027db51a by BellCodeEditor

save project

parent cd02446d
Showing with 7 additions and 4 deletions
...@@ -3,10 +3,13 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正 ...@@ -3,10 +3,13 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
A=input("请输入账号") A=input("请输入账号")
B=input("请输入密码") B=input("请输入密码")
while A == username and B==userpassword: if A != username :
print("输入错误,再次输入") print("用户名错误")
break if B!= userpassword:
print("登录成功,欢迎来到贝尔编程!") print("密码错误")
if A == username and B == userpassword:
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