Commit f20e85bd by BellCodeEditor

save project

parent 8cdedadf
Showing with 6 additions and 3 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:
if username==name and userpassword==password:
print('您已成功登陆') print('您已成功登陆')
if username!=name: break
if username!=name:
print('用户名错误') print('用户名错误')
continue continue
if password!=userpassword: if password!=userpassword:
print('密码错误') 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