Python 终端表格打印库 Pylsy

码农软件 · 软件分类 · 报表/图表制作 · 2019-08-19 11:28:45

软件介绍

Pylsy 是一个简单的 Python 库,用于在终端上打印表格,只要两行代码。

image

简单使用方法:

首先import

from pylsy import PylsyTable

然后创建一个包含table属性的list

attributes=["name","age","sex","id","time"]

接着,使用Pylsy创建一个ASCII表

table=PylsyTable(attributes)

然后,为每一个属性添加值,像下面的name属性一样。

name=["sun","lsy","luna","leviathan"]

接着,添加数据到table中

table.add_data("name",name)

最后,你就创建好ASCII表了。

table.create_table()

本文地址:https://codercto.com/soft/d/12698.html

Pattern Recognition and Machine Learning

Pattern Recognition and Machine Learning

Christopher Bishop / Springer / 2007-10-1 / USD 94.95

The dramatic growth in practical applications for machine learning over the last ten years has been accompanied by many important developments in the underlying algorithms and techniques. For example,......一起来看看 《Pattern Recognition and Machine Learning》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

随机密码生成器
随机密码生成器

多种字符组合密码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具