Commit 5b574775 by BellCodeEditor

save project

parent bf3387cc
Showing with 20 additions and 12 deletions
u = "python" u = "python"
us = "123456" us = "123456"
i=3
while True: while True:
name = input("请输入用户名:") if i>0:
password = input("请输入密码:") name = input("请输入用户名:")
if name == u and password == us: password = input("请输入密码:")
print("登录成功!") i=i-1
break if u==name and us==password:
if u!=name: print("登录成功!")
print("用户名和密码错误!请重新输入") break
if us!=password:
continue if u!=name:
print("密码错误") print("用户名和密码错误!请重新输入")
print("欢迎来到贝尔编程!") continue
\ No newline at end of file
if us!=password:
print("密码错误")
else:
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