Is there a Python equivalent to Perl's Data::Dumper for inspecting data structures?

前端 未结 11 1371
小鲜肉
小鲜肉 2020-12-10 00:19

Is there a Python module that can be used in the same way as Perl\'s Data::Dumper module?

Edit: Sorry, I should have been clearer. I was mainly afte

11条回答
  •  渐次进展
    2020-12-10 00:58

    If you want something that works better than pprint, but doesn't require rolling your own, try importing dumper from pypi:
    https://github.com/jric/Dumper.py or https://github.com/ericholscher/pypi/blob/master/dumper.py

提交回复
热议问题