Commit cc5c5af3 by BellCodeEditor

save project

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