import os
import xlrd
os.chdir('D:\\excel')
for j in os.popen('dir'):
j=j.strip('\n')
wb=xlrd.open_workbook(j)
table=wb.sheet_by_index(0)
numh=0.0
for i in range(1,table.nrows):
numh=table.cell(rowx=i,colx=1).value+numh
print numh
哪里错了
是不是文件迭代出错