Commit f20e85bd by BellCodeEditor

save project

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