Commit 60b2006c by BellCodeEditor

save project

parent 92eef3a0
Showing with 8 additions and 3 deletions
i=3
username='ro'
userpassword='367'
name=input('请输入你的帐号:')
password=input('请输入您的密码:')
# name=input('请输入你的帐号:')
# password=input('请输入您的密码:')
while True:
name=input('请输入你的帐号:')
password=input('请输入您的密码:')
i=i-1
if i>0:
if username==name and userpassword==password:
print('您已成功登陆')
break
......@@ -13,6 +16,7 @@ while True:
continue
if password!=userpassword:
print('密码错误')
else:
else:
print('您的在账号被锁定')
exit()
\ 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