Commit 066efbd4 by BellCodeEditor

save project

parent 02b34b3e
Showing with 7 additions and 1 deletions
i = 3
username = "python"
userpassword = "123456"
while True:
name = input("请输入用户名:")
if i>0:
name = input("请输入用户名:")
i-=1
if name == username and password == userpassword:
name = input("请输入账号")
break
if name != username:
......@@ -14,4 +18,6 @@ while True:
password = input("请输入密码:")
if password != userpassword :
print("密码错误")
else:
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