【Python库】在Python中使用谷歌翻译API「Googletrans」
介绍
Googletrans是一个封装了谷歌翻译API的Python代码库。开发者可以使用Googletrans库调用谷歌翻译的大部分功能。
Googletrans
安装
pip install googletrans
Python 3.6+
使用方法
翻译
from googletrans import
trans = Translator(service_urls=['translate.google.com', ])
text = trans.translate('Hello,App...
wuxiaomo.hashnode.dev2 min read