【随手记】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)
相关推荐
子夜四时歌29 分钟前
Python详细安装与环境搭建
开发语言·python
Jinkxs30 分钟前
SkyWalking - Python 应用追踪:基于 skywalking-python 的埋点
开发语言·python·skywalking
大头博士先生30 分钟前
【3月考】二级Python最新真题及满分代码合集(基本操作题部分)
开发语言·python
白狐_79831 分钟前
【实战架构】一人抵一家设计公司:基于 ComfyUI + Python RPA + Photoshop 的全自动化工业制图工作流
python·photoshop·rpa
shengli72232 分钟前
Python在金融科技(FinTech)中的应用
jvm·数据库·python
xcLeigh32 分钟前
IoTDB Python原生接口全攻略:从基础读写到高级实战
开发语言·数据库·python·api·iotdb·原生接口·读写数据
User_芊芊君子33 分钟前
文科生封神!Python+AI 零门槛变现:3 天造 App,指令即收入(附脉脉 AI 沙龙干货)
开发语言·人工智能·python
MeowNeko33 分钟前
为什么说程序员重命名时电脑不要带中文?记一次python manage.py runserver时UnicodeDecodeError的原因与解决方案
人工智能·python·chatgpt·中间件·django·utf8
是Dream呀33 分钟前
2025年中秋月亮只有94.91%圆?Python告诉你真相
开发语言·python·中秋节
星辰徐哥34 分钟前
Python开发从入门到精通:异步编程与协程
开发语言·python