利用if...else登录
# -*- coding: utf-8 -*-
_username ="neo"
_password ="123456"
username = input('username:')
password = input('password:')
if _username==username and _password==password:
print ('welcome',_username)
else:
print ('wrong username or password')
请问我这段代码哪里错误了,为什么结果输入用户名,提示找不到?