__init__.py 文件源码

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

项目:deb-python-couleur 作者: openstack 项目源码 文件源码
def __init__(self, output=None, indent=2, linebreak=False, bold=False,
                 disabled=not SUPPORTS_ANSI):
        self._indentation_factor = indent
        self._indent = 0
        self._linebreak = linebreak
        self._bold = bold
        self._in_format = False
        self._disabled = disabled
        self.output = output or sys.stdout

        if disabled:
            self._backcolors = empty()
            self._forecolors = empty()
            self._modifiers = empty()
        else:
            self._backcolors = backcolors()
            self._forecolors = forecolors()
            self._modifiers = modifiers()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号