Closed NUCsimple closed 5 years ago
Traceback (most recent call last): File "fuckeverything.py", line 8, in from spider.get_free_proxy import GetFreeProxy File "/home/carvin/gitfile/12306/spider/get_free_proxy.py", line 50 yield tr.xpath("./td[1]/text()")[0] + ":" + tr.xpath("./td[2]/text()")[0] SyntaxError: 'return' with argument inside generator
@NUCsimple 暂时没有遇到这类问题噢
Traceback (most recent call last): File "fuckeverything.py", line 8, in
from spider.get_free_proxy import GetFreeProxy
File "/home/carvin/gitfile/12306/spider/get_free_proxy.py", line 50
yield tr.xpath("./td[1]/text()")[0] + ":" + tr.xpath("./td[2]/text()")[0]
SyntaxError: 'return' with argument inside generator