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

Web Caching

Web Caching

Duane Wessels / O'Reilly Media, Inc. / 2001-6 / 39.95美元

On the World Wide Web, speed and efficiency are vital. Users have little patience for slow web pages, while network administrators want to make the most of their available bandwidth. A properly design......一起来看看 《Web Caching》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具