Commit 84e36d0c by BellCodeEditor

save project

parent e4351f3a
Showing with 13 additions and 8 deletions
...@@ -5,11 +5,16 @@ while True: ...@@ -5,11 +5,16 @@ while True:
a=input("请输入账号:") a=input("请输入账号:")
a1=input("请输入密码:") a1=input("请输入密码:")
a1=int(a1) a1=int(a1)
if a==usename and a1==usepassword: i=3
print("登录成功") while True:
break if a==usename and a1==usepassword:
else: print("登录成功")
if a!=usename: break
print("用户名错误")
else: else:
print("密码错误") i-=1
\ No newline at end of file if i==0:
exit()
if a!=usename:
print("用户名错误")
else:
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