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://www.codercto.com/soft/d/12698.html

Algorithms and Theory of Computation Handbook

Algorithms and Theory of Computation Handbook

Mikhail J. Atallah (Editor) / CRC-Press / 1998-09-30 / USD 94.95

Book Description This comprehensive compendium of algorithms and data structures covers many theoretical issues from a practical perspective. Chapters include information on finite precision issues......一起来看看 《Algorithms and Theory of Computation Handbook》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

html转js在线工具
html转js在线工具

html转js在线工具

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

HEX CMYK 互转工具