Commit f20e85bd by BellCodeEditor

save project

parent 8cdedadf
Showing with 10 additions and 7 deletions
...@@ -2,12 +2,14 @@ username='ro' ...@@ -2,12 +2,14 @@ username='ro'
userpassword='367' userpassword='367'
name=input('请输入你的帐号:') name=input('请输入你的帐号:')
password=input('请输入您的密码:') password=input('请输入您的密码:')
if username==name and userpassword==password: while True:
print('您已成功登陆') if username==name and userpassword==password:
if username!=name: print('您已成功登陆')
print('用户名错误') break
continue if username!=name:
if password!=userpassword: print('用户名错误')
print('密码错误') continue
if password!=userpassword:
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