items.py 文件源码

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

项目:linotype 作者: lostatc 项目源码 文件源码
def _width(self) -> int:
        """Get the number of columns to wrap text to.

        This is either the width of the terminal window or the maximum width
        set in the Formatter instance, whichever is smaller.
        """
        if self.formatter.auto_width:
            return min(
                self.formatter.max_width, shutil.get_terminal_size().columns)
        else:
            return self.formatter.max_width
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号