Commit 92eef3a0 by BellCodeEditor

save project

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