方法abc的定义你改成下面这样: class eee: def abc(self, b): b[1]=0; print b; 正常定义方法时都需要传入该类的对象作为参数。
"".join(app.select('./li//text()').extract_unquoted())