【随手记】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)
相关推荐
Qt学视觉9 分钟前
AI2-Paddle环境搭建
c++·人工智能·python·opencv·paddle
廋到被风吹走32 分钟前
【LangChain4j】特点功能及使用场景
后端·python·flask
Eward-an36 分钟前
LeetCode 239. 滑动窗口最大值(详细技术解析)
python·算法·leetcode
青槿吖1 小时前
第二篇:告别XML臃肿配置!Spring注解式IOC/DI保姆级教程,从入门到真香
xml·java·开发语言·数据库·后端·sql·spring
t198751281 小时前
TOA定位算法MATLAB实现(二维三维场景)
开发语言·算法·matlab
喵手1 小时前
Python爬虫实战:用代码守护地球,追踪WWF濒危物种保护动态!
爬虫·python·爬虫实战·濒危物种·零基础python爬虫教学·wwf·濒危物种保护动态追踪
梦想的旅途21 小时前
如何通过 QiWe API 实现企业微信主动发消息
开发语言·python
jllllyuz1 小时前
粒子群算法解决资源分配问题的MATLAB实现
开发语言·算法·matlab
喵手1 小时前
Python爬虫实战:自动化抓取 Pinterest 热门趋势与创意!
爬虫·python·爬虫实战·pinterest·零基础python爬虫教学·采集pinterest热门趋势·热门趋势预测