sniper.py 文件源码

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

项目:PokemonGo-Bot 作者: PokemonGoF 项目源码 文件源码
def _get_closest_name(self, name):
        if not name:
            return

        pokemon_names = [p.name for p in inventory.pokemons().STATIC_DATA]
        closest_names = difflib.get_close_matches(name, pokemon_names, 1)

        if closest_names:
            closest_name = closest_names[0]
            return closest_name

        return name

# Represents the JSON params mappings
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号