使用python爬虫翻译时遇到报错'ascii' codec can't encode characters in position 35-39: ordinal not in range(128)

https://blog.csdn.net/weixin_43566022/article/details/107124621
代码原帖地址 可实现pubmed文献检索+翻译功能,运行时点击翻译键就出现了这样的报错,请教如何解决呢

img

环境为python3.9.7

编码错误呗,看网页是啥编码