老师请问一下,上报如下错误是什么原因呢
Traceback (most recent call last):
File “/Users/apple/PycharmProjects/dj1224demo/data_operate/runtest.py”, line 38, in
runtest.isruntest()
File “/Users/apple/PycharmProjects/dj1224demo/data_operate/runtest.py”, line 30, in isruntest
depend_keydata=depend_keydata.get_dep_key(i)#获取key的value值
File “/Users/apple/PycharmProjects/dj1224demo/data_operate/dependdata.py”, line 26, in get_dep_key
reponsedata=self.rundepend()#相应值
File “/Users/apple/PycharmProjects/dj1224demo/data_operate/dependdata.py”, line 16, in rundepend
depend_url =self.get_global_data.get_global_url(depend_num)
File “/Users/apple/PycharmProjects/dj1224demo/data_operate/get_global_data.py”, line 18, in get_global_url
url=self.opera_excel.getvalue(row,col)
File “/Users/apple/PycharmProjects/dj1224demo/operate_excel2.py”, line 23, in getvalue
value=self.data.cell_value(rows,cols)
File “/Users/apple/Library/Python/2.7/lib/python/site-packages/xlrd/sheet.py”, line 419, in cell_value
return self._cell_values[rowx][colx]
TypeError: list indices must be integers, not NoneType