整数数组:TypeError: only length-1 arrays can be converted to Python scalars
📁 python, 错误, numpy - популярная библиотека для научных вычислений, matplotlib:数据可视化库
import scipyimport scipy.fftpackimport cmath import mathimport matplotlib.pyplot as plt import numpy as npfrom scipy import signalfrom scipy.signal import freqs, iirfilterxx = np.linspace(0, 1024, 1024) # x 值范围byts = ([0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0,