XLRDError:不支持的格式

时间:2019-05-27 09:12:00

标签: format xlrd

我正在使用Pandas读取xlsx文件 我使用的是xlrd版本1.2.0 它只显示14个数字。 我的代码


for i in comb:
    isotop1_path=combine(str(i[0]))
    isotop2_path=combine(str(i[1]))
    f=60
    file="{}_{}-{} ".format(str(i), f, 100-f)
    #file=TreatOneCombination( i, 20 )
    dirName ='Radionucleide/'+str(file)+'/'
    try:
        os.mkdir(dirName)
        print("Directory " , dirName ,  " Created ") 
    except FileExistsError:
        print("Directory " , dirName ,  " already exists")
    for g,j,k in zip(isotop1_path,isotop2_path,range(len(isotop2_path))):    
        x=plot_spectre(str(g))
        y=plot_spectre(str(j))
        figure=dirName+str(i)+str(k)+'.png'
        c=f*x+(100-f)*y
        plt.vlines(x=[i for i in range(0,2200,15)],ymin=0,ymax=c,color='black')
        plt.plot([i for i in range(0,2200,15)],c,'k')
        plt.savefig(figure)`enter code here
        plt.show()

错误

python

XLRDError: Unsupported format, or corrupt file: Expected BOF record; found 
b'\rMhamdi '

0 个答案:

没有答案