Commit 5b574775 by BellCodeEditor

save project

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