谁能帮我详细了解下载和导入名为 PyEnchant 的外部库的过程,以检查单词的拼写是否是有效的英文单词
最佳答案
你必须安装它
pip install pyenchant
文档中的简单用法示例:
import enchant
d = enchant.Dict("en_US")
d.check("Hello") # Returns True
d.check("Helo") # Returns False
要安装 pip,请参阅:https://pip.pypa.io/en/latest/installing.html#install-pip
关于python - 如何在python中导入外部库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24380160/