问题 I am trying to create a multible voigt/Gaussian/Lorentizan-peak fit function with lmfit. Therefore, I wrote the following Function: def apply_fit_mix_multy(data,modelPeak,peakPos,amplitud,**kwargs): peakPos=np.array(peakPos) Start=kwargs.get('Start',data[0,0]) length_data=len(data)-1 End=kwargs.get('End',data[length_data,0]) StartPeak=kwargs.get('StartPeak',data[0,0]) EndPeak=kwargs.get('EndPeak',data[length_data,0]) BackFunc=kwargs.get('BackFunc',False) BackCut=kwargs.get('BackCut',False)