Commit 49e09feb by BellCodeEditor

save project

parent 50c30aa0
Showing with 4 additions and 0 deletions
a=3
usernanme="python" usernanme="python"
userpassword="123456" userpassword="123456"
while True: while True:
if a>0:
name=input("请输入用户名") name=input("请输入用户名")
password=input("请输入密码") password=input("请输入密码")
#请用input()实现用户输入账号、密码的功能 #请用input()实现用户输入账号、密码的功能
a-=1
if usernanme==name and userpassword==password: if usernanme==name and userpassword==password:
print("登录成功") print("登录成功")
break break
...@@ -11,6 +14,7 @@ while True: ...@@ -11,6 +14,7 @@ while True:
print("重新登录用户名") print("重新登录用户名")
else: else:
print("重新登录密码") 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