composition.py 文件源码

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

项目:docker-etude 作者: globality-corp 项目源码 文件源码
def to_yaml(self):
        """
        Pretty print dump as YAML.

        """
        return dump(
            self.to_safe_dict(),
            # show every document in its own block
            default_flow_style=False,
            # start a new document (via "---") before every resource
            explicit_start=True,
            # follow (modern) PEP8 max line length and indent
            width=99,
            indent=4,
            Dumper=SafeDumper,
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号