Commit cc5c5af3 by BellCodeEditor

save project

parent 1c9f7cca
Showing with 7 additions and 10 deletions
......@@ -3,14 +3,11 @@ userpassword = "123456"
while True: # 保存在服务器数据库中的用户密码(正确的密码)
name=input("username")
password=input("userpassword")
if username=name and userpassword=password
if username==name and userpassword==password:
print("登录成功")
break
print("输入错误")
print("欢迎您来到贝尔编程")
# 如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file
if name!=username:
print("用户名不存在,请重新登录")
if password!=userpassword:
print("输入错误")
print("欢迎您来到贝尔编程")
\ No newline at end of file
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