我不认为代码有什么问题。你能帮助我吗?我需要帮助。谢谢!
from xlrd import open_workbook
wb = open_workbook('/pdf-ex/exc.xlsx','rb')
for s in wb.sheets():
print 'Sheet:',s.name
for row in range(s.nrows):
values=[]
for col in range(s.ncols):
values.append(s.cell(row,col).value)
print ",".join(values)
print