python之pprint模塊簡用

pprint module提供了能夠按照某個格式正確的顯示python已知類型數據的一種方法,這種格式可被解析器解析, 又很易讀。可是,若是已知格式的數據對象不是python的基礎類型,這種表示方法就有可能加載失敗。這種狀況通常是對象爲 files, sockets, classes, or instances are included, as well as many other built-i
相關文章
相關標籤/搜索