54 36 u00 54 UnicodeDecodeError unicodeescape codec can decode bytes i

1
2
3
4
5
6
7
8
9
>>> "%X" % 54
'36'
>>> u"\u00%X" % 54
UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 0-4: truncated \uXXXX escape
>>> ur"\u00%X" % 54
UnicodeDecodeError: 'rawunicodeescape' codec can't decode bytes in position 0-3: truncated \uXXXX
>>> "\x%X" % 54
ValueError: invalid \x escape
>>>