该模块用于美化输出。

    1. from pprint import pprint
    2. quotes = OrderedDict([('Moe', 'A wise guy, huh?'), ('Larry', 'Ow!'), ('Curly', 'Nyuk nyuk!')])
    3. print(quotes) # output: OrderedDict([('Moe', 'A wise guy, huh?'), ('Larry', 'Ow!'), ('Curly', 'Nyuk nyuk!')])
    4. pprint(quotes)
    5. # {'Moe': 'A wise guy, huh?',
    6. # 'Larry': 'Ow!',
    7. # 'Curly': 'Nyuk nyuk!'}