1、背景python
若是一個字典長度很大,直接print輸出則比較難看,咱們須要美化輸出,能夠借鑑jsonjson
import json beautiful_format = json.dumps(your_dict, indent=4) print(beautiful_format)