我正在尝试使用 TextBlob 库翻译文本,但出现以下 HTTPError 错误:HTTP Error 400: Bad request有人可以帮我解决这个问题吗?
观察:我使用 VSCode 来运行这个脚本,由于工作中的认证,我无法使用 googletrans。
from textblob import TextBlob
b = TextBlob("The weather is beautiful today. Tomorrow looks like bad weather.")
b.translate(to='es')
Run Code Online (Sandbox Code Playgroud) python translation translate textblob google-translation-api