import os.pathimport xlrd,sysFilename='/home/tom/Desktop/1234.xls'if not os.path.isfile(Filename): raise NameError,"%s is not a valid filename"%Filenamebk=xlrd.open_workbook(Filename)shxrange=range(bk.nsheets)print shxrangefor x in shxrange: p=bk.sheets()[x].name.encode('utf-8') print p.decode('utf-8')