美文网首页
python中函数积累

python中函数积累

作者: mutang | 来源:发表于2019-06-28 01:39 被阅读0次

1 pprint()

打印JSON格式数据,用pprint(),起作用为美化输入,得到树桩的JSON格式#值得注意的是,使用pprint需要用from pprint import pprint,pprint适用于dictionary和list

2 indent( int)

用来给一整行的内建结构,提供缩进,美化数据显示

相关文章

网友评论

      本文标题:python中函数积累

      本文链接:https://www.haomeiwen.com/subject/oadjcctx.html