Gxlsystem TIY Editor
Gxlsystem 在线教程
改变方向
暗黑模式
python_json_from_python_indent.py:
import json x = { "name": "Bill", "age": 63, "married": True, "divorced": False, "children": ("Jennifer","Rory","Phoebe"), "pets": None, "cars": [ {"model": "Porsche", "mpg": 38.2}, {"model": "BMW M5", "mpg": 26.9} ] } # use four indents to make it easier to read the result: print(json.dumps(x, indent=4))