My snakes don't give a crap about me, lol.
That being said, I think they have learning capabilities...though I'd lean towards that not being a result of cognition as much as impression. Not at all saying you can train a snake, but they definitely can be conditioned. I also think they can differentiate between people, based on my own personal experience.