Commit 9aaee08d by BellCodeEditor

save project

parent dd3b49bd
Showing with 15 additions and 13 deletions
...@@ -2,19 +2,20 @@ i=3 ...@@ -2,19 +2,20 @@ i=3
username = "python" username = "python"
userpassword = "111111" userpassword = "111111"
while True: while True:
name = input("111112") if i>0:
password = input("名字") name = input("111112")
i-=1 password = input("名字")
if name == username and password == userpassword: i-=1
print("成功") if name == username and password == userpassword:
break print("成功")
if name!=username: break
continue if name!=username:
print("错误 ") continue
if password!= userpassword: print("错误 ")
print("错误") if password!= userpassword:
print("用户 密码错误") print("错误")
else print("用户 密码错误")
else:
print("已被锁定") print("已被锁定")
exit() exit()
print("欢迎来到贝尔编程!") 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