Commit 60b2006c by BellCodeEditor

save project

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