list.py 文件源码

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

项目:compatify 作者: hatooku 项目源码 文件源码
def output_package_listing(self, installed_packages):
        installed_packages = sorted(
            installed_packages,
            key=lambda dist: dist.project_name.lower(),
        )
        for dist in installed_packages:
            if dist_is_editable(dist):
                line = '%s (%s, %s)' % (
                    dist.project_name,
                    dist.version,
                    dist.location,
                )
            else:
                line = '%s (%s)' % (dist.project_name, dist.version)
            logger.info(line)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号