1.以前都是用print来定位哪里报错,后面发现一个新的调试技巧
import pdb for i in range(nrows): if i < 20: content = table.row_values(i) print(content) pdb.set_trace()