python 图形库_Python 有没有什么好用的命令行图形库 ?

2022-08-28 12:59:20

可能我的描述有点让人摸不着头脑 ,实际上我的需求很简单,就是在命令行打印出下面或者类似的图形,主要是为了日志好看😜

+-------------------------+--------------------------+-------------------------+

| Header Col 1 | Header Col 2 | Header Col3 |

+=========================+==========================+=========================+

| This is the first value | This is the second value | This is the third value |

+-------------------------+--------------------------+-------------------------+

| Red | Blue | Green |

+-------------------------+--------------------------+-------------------------+

| 42 | 10 | 1 |

+-------------------------+--------------------------+-------------------------+

一般情况下,我都是通过 print("+---------------------------+")来做到上面的效果的,但是每次使用都这么麻烦,还要敲那么多无用字符,所以就想问问有没有专门做这个的库:P

  • 作者:weixin_39957934
  • 原文链接:https://blog.csdn.net/weixin_39957934/article/details/110328798
    更新时间:2022-08-28 12:59:20