在PHP中,我可以这样做:
echo '<pre>' print_r($array); echo '</pre>'
在Python中,我目前只是这样做:
print the_list
然而,这将导致大量的数据。有没有办法把它很好地打印成一个可读的树?(带缩进)?
https://stackoverflow.com/questions/1523660
相似问题