【随手记】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)
相关推荐
羲云网络10 小时前
GPT Image 2.6 海报改横竖版:文字安全区、排版分离与交付验收
图像处理·人工智能·python·aigc
曲径海盗11 小时前
【Python 学习第 65 天】字典基础
python·学习笔记·编程入门
Wellijohn11 小时前
Docker 瘦身、手写 MCP、异步并发:被问得最多的 12 个问题,一次答完
python·docker·mcp
VW_40414 小时前
csdn-2026-11-23-第一站踩坑
爬虫·python
yiangL_15 小时前
课后作业4:基于 Python 的古诗词词云可视化(P205)
开发语言·python
Dmz丶15 小时前
前端转 AI 100 天 Day 52:RAG 项目实战(一)——从零搭建企业知识库
python
geovindu16 小时前
rust: Functional Options Pattern
开发语言·后端·设计模式·rust·函数式选项模式·惯用法型模式
skywalk816317 小时前
把「假成功」赶出工具层:lightharness 两天升级复盘(4×5 模式矩阵 + 工具层 5 个缺陷)
开发语言·前端·人工智能·lightharness
敲上瘾18 小时前
Qt控件通用属性:geometry、qrc资源到QSS样式表等
开发语言·c++·qt·ui
卷无止境18 小时前
用 SimPy 做离散事件仿真:时钟不走步,事件自己排队
后端·python