import json
from json import JSONEncoder
json._default_encoder=JSONEncoder(ensure_ascii=False)
print({"name": "小泓"})
print(json.dumps({"name": "小泓"}))
python全局修改json.dumps()编码
最新推荐文章于 2023-12-16 03:15:00 发布
import json
from json import JSONEncoder
json._default_encoder=JSONEncoder(ensure_ascii=False)
print({"name": "小泓"})
print(json.dumps({"name": "小泓"}))