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