changelog.py 文件源码

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

项目:smartchangelog 作者: ngouzy 项目源码 文件源码
def print_multilines(cls, name: str, value: str, file: IO):
        if value:
            lines = value.split('\n')
            if len(lines) == 1:
                print("    * {name}: {value}".format(name=name, value=value), file=file)
            else:
                print("    * {name}:".format(name=name), file=file)
                for line in lines:
                    print("        - {line}".format(line=line), file=file)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号