shelltools.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:reahl 作者: reahl 项目源码 文件源码
def print_command(self, keyword, description, max_len, out_stream):
        keyword_column = ('{0: <%s}  ' % max_len).format(keyword)
        if six.PY3:
            width = shutil.get_terminal_size().columns or 80
        else:
            width = 80
        output = textwrap.fill(description, width=width, initial_indent=keyword_column, subsequent_indent=' '*(max_len+2))
        print(output, file=out_stream)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号