add two strings

contro opinion contropinion at gmail.com
Mon Jan 30 08:02:54 EST 2012


>>> s1='\x45'
>>> s2='\xe4'
>>> s1+s2
'E\xe4'
>>> print  s1+s2
E

why  s1+s2  not  =  '\x45\xe4'??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120130/141e7e08/attachment.html>


More information about the Python-list mailing list