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

The Probabilistic Method Second Edition

The Probabilistic Method Second Edition

Noga Alon、Joel H. Spencer / Wiley-Blackwell / 2000 / $121.95

The leading reference on probabilistic methods in combinatorics-now expanded and updated When it was first published in 1991, The Probabilistic Method became instantly the standard reference on one......一起来看看 《The Probabilistic Method Second Edition》 这本书的介绍吧!

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

多种字符组合密码

URL 编码/解码
URL 编码/解码

URL 编码/解码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具