【发布时间】:2011-07-30 03:07:09
【问题描述】:
我发出了一个 JSON 请求,它给了我一个使用 Unicode character codes 的字符串,如下所示:
s = "\u003Cp\u003E"
我想把它转换成:
s = "<p>"
在 Python 中执行此操作的最佳方法是什么?
注意,这与this one 是同一个问题,仅在 Python 中,除了 Ruby。我也在使用Posterous API。
【问题讨论】:
标签: json python-2.7 unicode escaping posterous