# python 翻译 api
# 基于多种翻译引擎:Google, Yandex, Microsoft(Bing), Baidu, Alibaba, Tencent, NetEase(Youdao), Sogou, Kingsoft(Iciba), Iflytek, Deepl, Caiyun, Argos
#https://pypi.org/project/translators/
#pip install translators
import translators as ts
text="hello, welcome to this world!"
#google翻译
result=ts.google(text,"en","zh-CN")
#阿里翻译
result_alibaba=ts.alibaba(text,"en","zh-CN")
#必应翻译
result_bing=ts.bing(text,"en","zh-CN")
print(result)
print(result_alibaba)
print(result_bing)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)