Commit 000f224a by BellCodeEditor

save project

parent cd029984
Showing with 4 additions and 0 deletions
...@@ -5,6 +5,10 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正 ...@@ -5,6 +5,10 @@ userpassword = "123456" # 保存在服务器数据库中的用户密码(正
while True: while True:
random=input("请输入账户名") random=input("请输入账户名")
screen=input("请输入密码") screen=input("请输入密码")
if random!=username:
print('账户名错误')
if screen!=userpassword:
print('密码错误')
if random==username: if random==username:
if screen==userpassword: if screen==userpassword:
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