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

前端 未结 11 1340
小鲜肉
小鲜肉 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 01:10

    As far as inspecting your object goes, I found this a useful equivalent of Data:Dumper:

    https://salmon-protocol.googlecode.com/svn-history/r24/trunk/salmon-playground/dumper.py

    It can handle unicode strings.

提交回复
热议问题