📅  最后修改于: 2022-03-11 14:45:13.539000             🧑  作者: Mango
代码示例2
# a Python object (dict):
x = {
"name": "John",
"age": 30,
"city": "New York"
}
# convert into JSON:
y = json.dumps(x)