import
json a = [{u'mobile': u'8973', u'userName': u'\u738b\u738d', u'idCard': u'110222196308253111', u'roleFlag': 7}] print json.dumps(a).decode("unicode_escape")

输出结果是:

[{"mobile": "8973", "userName": "王玍", "idCard": "110222196308253111", "roleFlag": 7}]

 

例子二:

aa = u'\u738b\u738d'
print json.dumps(aa).decode("unicode_escape")

输出结果:

"王玍"

 

相关文章:

  • 2021-10-30
  • 2022-01-17
  • 2021-05-31
  • 2021-07-07
  • 2022-02-03
  • 2021-06-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案