自定义方法时,自定义的方法调用当前类中另外个自定义方法,被调用的方法前面需要添加self.前缀,否则会报错:“NameError: name ‘get_index_by_title’ is not defined”