【发布时间】:2019-12-16 13:30:28
【问题描述】:
从 pprint 导入 pprint MyDict={"a":list(range(1,10)),"b":list(range(11,20)),"c":list(range(21,30))} pprint((MyDict))
【问题讨论】:
-
拜托,我不想使用漂亮打印功能“pprint”
-
请发布预期的输出。
-
#thanks,这是一个带有 pprint {'a': [1, 2, 3, 4, 5, 6, 7, 8, 9], 'b': [11, 12, 13, 14, 15, 16, 17, 18, 19], 'c': [21, 22, 23, 24, 25, 26, 27, 28, 29]}
-
这是我运行您的代码时得到的。使用您要查找的格式将此添加到问题中。
标签: python printing line new-operator