码迷,mamicode.com
首页 > 其他好文 > 详细

浅谈tabulate

时间:2018-08-05 14:18:35      阅读:1085      评论:0      收藏:0      [点我收藏+]

标签:com   data   实用   inf   模块   语法   ble   col   nbsp   

今天学习了一下python的tabulate这个一个很实用的模块。

可以把列表进行表格格式化,对里面的参数进行调用

语法是 tabulate(table_data, hearders = table_colums, tablefmt="grid")

技术分享图片得到类似的表格,根据参数进行分列表示

 

浅谈tabulate

标签:com   data   实用   inf   模块   语法   ble   col   nbsp   

原文地址:https://www.cnblogs.com/sshflying/p/9425255.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!