table format:将Python代码(列表列表)设置为固定宽度的表格 源码

上传:wash93700 浏览: 11 推荐: 0 文件:ZIP 大小:16.26KB 上传时间:2021-05-04 19:35:16 版权申诉
table_format 将Python代码(列表列表)格式化为固定宽度的表格。 :flexed_biceps: 入门 您已经进行了一些这样的测试: def test_the_thing (): assert do_the_thing () == [ [ "A nice header" , "Another" , "More" ], [ 1 , 2 , 3 ], ] 如果这些列对齐会不好吗? 将整个列表复制到剪贴板,然后通过管道传递到table-format --guess-indent 。 在Linux上,您可以使用xsel或xclip等: 选项 传递--help标志以显示所有子命令: $ table-format --help :down_arrow: 安装 最新的代码和数据可以通过以下方式直接从GitHub安装: $ pip install git+https://g
上传资源
用户评论