x = [1, 2, 3]
y = [x, dict(key1=x)]
z = [y, (x, y)]

import objgraph
objgraph.show_refs([y],filename='sample.png')

运行时报如下错误

Graph viewer (xdot) and image renderer (dot) not found, not doing anyt
hing else... 原因: 缺少依赖包
install python-xdot  perl-Image-Dot
05-12 19:02