Commit 376f2f93 by BellCodeEditor

save project

parent 448cd058
Showing with 16 additions and 0 deletions
un = "python"
up = "123456"
i = 3
while True:
if i == 0:
print("尝试次数超限")
exit()
nm = input("请输入用户名:")
pw = input("请输入密码:")
i -= 1
if nm == un and pw == up:
print("登录成功!")
break
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