Commit b1d79e02 by BellCodeEditor

save project

parent 370cf254
Showing with 9 additions and 0 deletions
name='python'#用户名
password='123456'#请输入密码
input_name=input('请输入您的用户名:')#在控制台输入用户名
input_password= input('请输入您的密码:')#在控制台输入密码
if name == input_name and password == input_password :#如果用户名和密码都正确
print('输入正确!')
if name != input_name or password != input_password :#如果两者其一不正确
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