TypeError: 'generator' object is not subscriptable

TypeError: 'generator' object is not subscriptable

生成器对象不可以带下标

def get_row(self,row_no):
if not isinstance(row_no,int):
return None
if self.sheet is not None:
return self.sheet.rows[row_no-1]
return None
原文地址:https://www.cnblogs.com/python-xiakaibi/p/11553473.html