Commit 5bc20f84 by BellCodeEditor

save project

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