TA的每日心情 | 无聊 2022-7-11 10:17 |
---|
签到天数: 97 天 [LV.6]常住居民II
|
发表于 2018-12-10 12:09:45
|
显示全部楼层
现在查单词可以正常显示,但句子就会提示错误。, S1 p1 d7 G) b) T# e. L0 J) I* b
查询错误:程序返回,退出代码为 1. Traceback (most recent call last): File "D:\GoldenDict-addition\translate.py", line 27, in <module> gg_trans = translator.translate(sys.argv[1], dest='zh-cn').text File "C:\Users\darhc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\client.py", line 132, in translate data = self._translate(text, dest, src) File "C:\Users\darhc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\client.py", line 57, in _translate token = self.token_acquirer.do(text) File "C:\Users\darhc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\gtoken.py", line 180, in do self._update() File "C:\Users\darhc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\gtoken.py", line 59, in _update code = unicode(self.RE_TKK.search(r.text).group(1)).replace('var ', '') AttributeError: 'NoneType' object has no attribute 'group' |
|