我可以使用哪个API来翻译Python中的文本?
我不想使用谷歌或必应。还有其他东西吗?
谷歌一直说"超过天数限制",必应翻译前 3-4 个问题,然后我得到"找不到与请求凭据关联的活动 Azure Market Place 翻译订阅"
如果你想检查它,我做了这个脚本:https://github.com/mouuff/Google-Translate-API :)
非常易于使用:
to_translate = 'Hola como estas?'
print("%s >> %s" % (to_translate, translate(to_translate)))
print("%s >> %s" % (to_translate, translate(to_translate, 'fr')))
应该打印 Hola como estas>> 你好,你好吗
和霍拉科莫埃斯塔斯?>> Bonjour评论allez-vous?