code

#!/usr/bin/python
# encoding=utf-8
import json
data = [{"a": "中文"}]
print json.dumps(data).decode("unicode-escape")

输出

[{"a": "中文"}]

相关文章:

  • 2021-09-29
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-06-25
  • 2021-07-28
  • 2022-12-23
猜你喜欢
  • 2021-10-10
  • 2021-10-08
  • 2021-09-17
  • 2022-02-10
相关资源
相似解决方案