initiatives.py 文件源码

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

项目:tipi-engine 作者: CIECODE-Madrid 项目源码 文件源码
def matchautorgroup(self,lists):
        all = self.members+self.groups
        res = []


        for element in lists:
            member = None
            max = 0
            for memb in all:
                ratio = fuzz.token_sort_ratio(element, memb['nombre'])
                if ratio > max:
                    member = memb
                    max = ratio
            res.append(member)
        return res
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号