Avatar ·

整数整体:TypeError: Only Length-1 Arrays Can Be Converted to Python Scalars

📁 python, 错误, numpy - популярная библиотека для научных вычислений, matplotlib:数据可视化库

   import  scipy  import  scipy.signal  import  cmath  import  math  import  matplotlib.pyplot  as  plt  import  numpy  as  np  from  scipy  import  *  from  scipy.signal  import  freqs, iirfilter xx = np.linspace ( 0 ,  1024 ,  1024 ) # x的取值范围  byts = ([ 0 ,  0 ,  0 ,  0 ,  1 ,  0 ,  1 ,  0 ,  0 ,  0 ,