Commit 5bc20f84 by BellCodeEditor

save project

parent e9a5d1f1
Showing with 19 additions and 11 deletions
username = "python"
userpassword = "123456"
i=5
username = "qazxcv"
userpassword = "102938"
while True:
zh=input("请输入您的账号:")
mm=input("请输入您的密码:")
if zh==username and mm==userpassword:
print("登陆成功!")
break
elif zh!=username:
print("账号不存在!请重新输入!")
else :
print("密码输入有误!请重新输入!")
if i>0:
zh=input("请输入您的账号:")
mm=input("请输入您的密码:")
i-=1
if zh==username and mm==userpassword:
print("登陆成功!")
break
if zh!=username:
print("账号不存在!请重新输入!")
continue
if mm!=userpassword:
print("密码输入有误!请重新输入!")
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