【随手记】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)
相关推荐
Byte Wizard1 分钟前
C语言数据在内存中的存储
c语言·开发语言
落日屿星辰1 分钟前
PyTorch 模型迁移到昇腾NPU 完整指南
人工智能·pytorch·python
basketball6163 分钟前
C++面试考点 头文件与实现文件形式
开发语言·c++
SilentSamsara4 分钟前
类型注解进阶:Union、Optional、Any 与 Callable
开发语言·python·青少年编程
爱喝热水的呀哈喽4 分钟前
gpt:RAG步骤
人工智能·python·机器学习
历程里程碑4 分钟前
56 . 高效ET非阻塞IO服务器设计指南
java·运维·服务器·开发语言·数据结构·c++·排序算法
Fleshy数模8 分钟前
课堂教学质量评估系统:基于加权欧氏距离的评分实现
python·llm
恣艺9 分钟前
Python 游戏开发与文件处理:PyGame + Turtle + openpyxl + python-docx + PyPDF2
开发语言·python·pygame
高林雨露16 分钟前
kotlin 相关code
开发语言·kotlin
_山海17 分钟前
用langchain 通过text-embedding-3-small生成embedding
python·langchain·llm