json展开打印

print(json.dumps(my_dict, sort_keys=True, indent=4, separators=(',', ':')))

猜你喜欢

转载自blog.csdn.net/muyimo/article/details/88342933