Commit 62e1a437 by BellCodeEditor

save project

parent 1efeefcd
Showing with 7 additions and 2 deletions
......@@ -4,8 +4,13 @@ while True:
a_1=input ("请输入账号:")# 请用input()实现用户输入账号、密码的功能
a_2=input("请输入密码:")
if a_1==username and a_2==userpassword:
print("登入成功")
break
print("登入成功")
break
if a_1!=username :
print("账号错误")
if a_2!=userpassword:
print("密码错误")
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