Commit 6ded610b by BellCodeEditor

save project

parent bf382243
Showing with 24 additions and 1 deletions
username = "python" username = "python"
psssword = "123456" userpsssword = "123456"
num = 3
while True:
if num>0:
name = input("请输入用户名:")
password = input("请输入密码:")
num-= 1
if name == username and password == userpsssword:
print("登录成功!")
break
if name != username:
print("用户名错误!您还有"+str(num)+"次机会")
continue
if password != userpsssword:
print("密码错误!您还有"+str(num)+"次机会")
else:
print("超过限制次数!")
exit()
print("欢迎来到贝尔编程")
print("ssss")
\ 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