Commit 92eef3a0 by BellCodeEditor

save project

parent 46f41450
Showing with 13 additions and 9 deletions
i=3
username='ro' username='ro'
userpassword='367' userpassword='367'
name=input('请输入你的帐号:') name=input('请输入你的帐号:')
password=input('请输入您的密码:') password=input('请输入您的密码:')
while True: while True:
if username==name and userpassword==password: i=i-1
print('您已成功登陆') if username==name and userpassword==password:
break print('您已成功登陆')
if username!=name: break
print('用户名错误') if username!=name:
continue print('用户名错误')
if password!=userpassword: continue
print('密码错误') if password!=userpassword:
print('密码错误')
else:
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