python 漂亮打印 pprint 简写

from pprint import pprint

data = [
    1,
    2,
    ('接口设置', '语音识别接口'),
    [1, 2, 3, 4],
    "你,我,他",
]

pprint(
    data,
    indent=2,  # 缩进
    width=1,  # 一行最大宽度
)

猜你喜欢

转载自blog.csdn.net/weixin_44493841/article/details/112391151