"More About Unicode in Python 2 and 3"
Serhiy Storchaka
storchaka at gmail.com
Mon Jan 6 15:20:15 EST 2014
More information about the Python-list mailing list
Mon Jan 6 15:20:15 EST 2014
- Previous message (by thread): "More About Unicode in Python 2 and 3"
- Next message (by thread): "More About Unicode in Python 2 and 3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
06.01.14 06:51, Chris Angelico написав(ла):
>>>> data = b"\x43\x6c\x67\x75\x62\x61" # is there an easier way to turn a hex dump into a bytes literal?
>>> bytes.fromhex('43 6c 67 75 62 61')
b'Clguba'
- Previous message (by thread): "More About Unicode in Python 2 and 3"
- Next message (by thread): "More About Unicode in Python 2 and 3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list