Commit fe24e116 by BellCodeEditor

save project

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