Commit 19a73838 by BellCodeEditor

save project

parent db51c1d3
Showing with 11 additions and 3 deletions
username = "python"
userpassword = "123456"
tim = 5
while True:
tim =3
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
......@@ -9,12 +9,19 @@ tim = 5
if name != username:
tim -= 1
print("用户名错误!请重新输入,还有"+str(tim)+"次输入的机会")
if tim >= 0:
print("您的输入次数已用完,请携带身份证来我司认证")
exit()
continue
if password != userpassword:
tim-=1
print("密码错误!请重新输入,还有"+str(tim)+"次输入的机会")
if tim >= 0:
print("您的输入次数已用完,请携带身份证来我司认证")
exit()
if tim >= 0:
print("您的输入次数已用完,请携带身份证来我司认证")
exit()
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