8
4

1 回答 1

12

The \u escape is not meaningful inside a non-unicode string. You need to do a = u'\u0D05'.

If you're saying you're getting the string from somewhere else and need to interpret unicode escapes in it, then do print a.decode('unicode-escape')

于 2013-05-15T07:24:16.113 回答