利用 python pprint模块 优雅的输出
来源:互联网 发布:新浪云部署node 编辑:程序博客网 时间:2024/06/08 00:16
importpprint
pprint.pprint(self.result_dic)
使用前输出结果:
{'business_xs_port': '40133', 'micro_port': '40240', 'yhfq_micro_port': '40661', 'yhfq_micro_ip': '192.168.33.74', 'kdc_micro_port': '40809', 'business_xs_ip': '192.168.33.72', 'financial_web_port': '40312', 'kdc_micro_ip': '192.168.33.74', 'micro_ip': '192.168.33.72', 'financial_web_ip': '192.168.33.73'}使用后输出结果:
{'business_xs_ip': '192.168.33.72',
'business_xs_port': '40133',
'financial_web_ip': '192.168.33.73',
'financial_web_port': '40312',
'kdc_micro_ip': '192.168.33.74',
'kdc_micro_port': '40809',
'micro_ip': '192.168.33.72',
'micro_port': '40240',
'yhfq_micro_ip': '192.168.33.74',
'yhfq_micro_port': '40661'}
阅读全文
0 0
- 利用 python pprint模块 优雅的输出
- python之pprint模块的pprint方法
- Python 模块学习 -----pprint
- python之pprint模块
- python pprint模块
- python pprint模块
- python pprint模块
- Python pprint模块
- python pprint模块
- Python学习笔记 --- pprint模块
- python之pprint模块简用
- python之pprint模块简用
- [Python模块学习]使用pprint模块格式化打印
- Python中的pprint
- Python开发--pprint
- python print str repr pprint
- Python中的pprint和pformat
- python数据存储 pprint, pickle
- wince下隐藏任务栏C#源码
- php+js+yii2 实现钉钉企业应用免登
- Quartz.NET实现作业调度
- 【云栖大会】阿里云发布新物种神龙云服务器媲美物理机性能的弹性云服务器
- 持续集成(CI)
- 利用 python pprint模块 优雅的输出
- mysq l单列索引 or 联合索引
- UGUI_用动画实现横版或竖版游戏背景幕布的移动
- Android自定义电量控件中过度绘制与思考
- [monitor] 5. Linux core dump(进程临终快照)
- Ubuntu下远程登录到目标windows
- ALV 动态显示列Demo
- 初赛复习2
- mysql 字符串数字间转换