import time
import json
d = {"a":1,"b":"中"}

print(json.dumps(d))

print(json.dumps(d,ensure_ascii=False))

  

json.dumps处理中文

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 1970-01-01
  • 2022-01-13
  • 2021-09-05
  • 2022-01-15
猜你喜欢
  • 2022-02-08
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
  • 2021-11-06
相关资源
相似解决方案