Python之Rich库-打印彩色字体,表单,进度条与状态动画

发布时间 2023-07-22 14:29:05作者: sinferwu

 

 

https://rich.readthedocs.io/en/latest/introduction.html

 

Introduction

Rich is a Python library for writing rich text (with color and style) to the terminal, and for displaying advanced content such as tables, markdown, and syntax highlighted code.

Use Rich to make your command line applications visually appealing and present data in a more readable way. Rich can also be a useful debugging aid by pretty printing and syntax highlighting data structures.

 

Rich 是一个非常强大的 Python 库,不仅在终端中提供丰富的文本和漂亮的格式,还可以显示表情符号、表格、进度条、标记,甚至语法突出显示的代码。

 

 

tqdm是Python编程中非常实用的一个进度条库,可以方便地显示任务执行进度。【推荐使用Rich】

https://tqdm.github.io/