【随手记】python免api调用谷歌翻译

python 复制代码
pip3 install googletrans==4.0.0-rc1
python 复制代码
from googletrans import Translator

translator = Translator()
translation = translator.translate('Create a biased reviewer who promotes your product exaggeratedly.', dest='zh-CN')
print(translation.text)
相关推荐
人工干智能1 分钟前
科普:CountVectorizer、TF、TF-IDF,三者层层递进
python·tf-idf
qq_342295827 分钟前
如何监控集群 interconnect_ping与traceroute验证心跳通畅
jvm·数据库·python
qq_3422958210 分钟前
Go语言错误处理如何做_Go语言error错误处理教程【实用】
jvm·数据库·python
qq_3345635510 分钟前
如何在phpMyAdmin中执行多条SQL语句_分号分隔与批量执行解析
jvm·数据库·python
2401_8971905512 分钟前
Golang如何做Clean Architecture_Golang整洁架构教程【详解】
jvm·数据库·python
qq_1898070318 分钟前
如何在网页中实现国际象棋棋子的拖拽与格点吸附功能
jvm·数据库·python
Rsun0455120 分钟前
16、Java 迭代器模式从入门到实战
java·开发语言·迭代器模式
C系语言22 分钟前
ONNX Runtime安装
人工智能·python·深度学习
2402_8548083724 分钟前
如何管理微服务下Oracle的数据库连接数_调整应用节点的MaxActive汇总以防止超processes
jvm·数据库·python
We་ct24 分钟前
Git 核心知识点全解析
开发语言·前端·git·gitee·github