Commit 81aa592d by BellCodeEditor

save project

parent 76217ff6
Showing with 7 additions and 1 deletions
usename = "python" i=3
i=3
usename = "python" usename = "python"
userpassword = "123456" userpassword = "123456"
while True: while True:
if i>0:
a=input("你的账号是啥子?") a=input("你的账号是啥子?")
b=input("你的密码是啥子?") b=input("你的密码是啥子?")
i-=1
if a==usename and b==userpassword: if a==usename and b==userpassword:
print("正确") print("正确")
break break
...@@ -11,5 +14,8 @@ while True: ...@@ -11,5 +14,8 @@ while True:
continue continue
if b != userpassword: if b != userpassword:
print("密码登录失败") print("密码登录失败")
else:
print("你的账号输入错误,你的钱没了")
exit()
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