Commit 0af13460 by BellCodeEditor

save project

parent d75f278a
Showing with 3 additions and 2 deletions
username = "hmd" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "5342123"
while True: # 保存在服务器数据库中的用户密码(正确的密码)
......@@ -7,11 +8,11 @@ while True: # 保存在服务器数据库中的用户密码(正确的密码
if a==username and b==userpassword :
print("登录成功")
break
if a!=username:
elif a!=username:
print("用户名不存在")
continue
if b!=userpassword:
else:
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