import matplotlib.pyplot as pyplot
import numpy as np 
import time 
import datetime
import pandas as pd 


data1=pd.read_excel("附件1.xlsx")
data2=pd.read_cvs("附件2.cvs")
data3=pd.read_excel("附件3.xlsx")
data4=pd.read_excel("附件4.excel")
all_list=np.array([class_list]*1094)
tinydict={'花叶类':0,'花菜类':1,'水生根茎类':2,'茄类':3,'辣椒类':4,'食用菌':5}
class_list=[0.0]*6
all_list=np.array([class_list]*1094)


time0=datetime.datetime.scrptime('2020-07-01',"%Y-%m-%d")
for i range(len(data2)):
 #for i in range (10000):
      if i % 10000=0:
             print(i)
      time_tmp=datetime.datetime.strptime(data2.iloc[i][0],"%Y-%m-%d")
      index_1=data_timedetla=(time_tmp-time0).days
      index_2=tinydict[data1[data1["单品编码"]=data2.iloc[i][2].iloc[0][3]
      all_list[index_1-1][index-2-1]=data2.iloc[i][3]
      #print(index_1,"",index_2,"",data2.iloc[i][3])
      plt.rcParams