howto.py 文件源码

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

项目:drill 作者: rr- 项目源码 文件源码
def run(self, _args: argparse.Namespace) -> None:
        text = util.get_data('howto.txt')

        width, _height = shutil.get_terminal_size((80, 20))

        body = '\n'.join([
            '\n'.join(
                wrap(
                    line,
                    width=width,
                    break_long_words=False,
                    replace_whitespace=False))
            for line in text.splitlines()
        ])

        print(body)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号