python 字典转json

# 字典转json
def my_json(dict):
    import json
    return json.dumps(dict, ensure_ascii=False)

你可能感兴趣的:(python 字典转json)