python之pprint模块简用

pprint module提供了能够按照某个格式正确的显示python已知类型数据的一种方法,这种格式可被解析器解析, 又很易读。可是,若是已知格式的数据对象不是python的基础类型,这种表示方法就有可能加载失败。这种状况通常是对象为 files, sockets, classes, or instances are included, as well as many other built-i
相关文章
相关标签/搜索