首先创建一个类class BaseView(object): def _init_(self,driver): self.driver=driver def find_element(self,*loc): return self.driver.find_element(*loc)运行发现报object() takes no parameters错误 核查发现是
_init_ 横线少打了一横 init前后都是两横