github仓库: https://github.com/azmiao/translator_lite 本翻译功能源自: translators 注意 此处使用的仅为精简版,本人仅为学习研究使用,未进行任何商业用途。 另外,请勿将本精简版用于任何商业用途 本精简版需要的依赖 PyExecJS lxml requests 使用方法 和原版一样,精简版仅包含百度翻译和有道翻译 print(baidu('测试', 'auto', 'en')) print(youdao('测试', 'auto', 'en'))