1.Python输出中文怎么解决 方法一:用encode和decode如:import os.pathimport xlrd,sys Filename=’/home/tom/Desktop/1234.xls’if not os.path.isfile(Filename):raise NameError,”%s is not a valid filename”%Filename bk=xlrd.open_workbook(Filename)shxrange=range(bk.nsheets)pri…