Commit 5bc20f84 by BellCodeEditor

save project

parent e9a5d1f1
Showing with 19 additions and 11 deletions
username = "python" i=5
userpassword = "123456" username = "qazxcv"
userpassword = "102938"
while True: while True:
zh=input("请输入您的账号:") if i>0:
mm=input("请输入您的密码:") zh=input("请输入您的账号:")
if zh==username and mm==userpassword: mm=input("请输入您的密码:")
print("登陆成功!") i-=1
break if zh==username and mm==userpassword:
elif zh!=username: print("登陆成功!")
print("账号不存在!请重新输入!") break
else : if zh!=username:
print("密码输入有误!请重新输入!") print("账号不存在!请重新输入!")
continue
if mm!=userpassword:
print("密码输入有误!请重新输入!")
else:
print("您的账号已被锁定,好自为之!!!")
exit()
print("欢迎来到贝尔编程!!!") 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