如何打印对象的值?
import amfm_decompy.pYAAPT as pYAAPT
import amfm_decompy.basic_tools as basic
signal = basic.SignalObj('microphone-results-6.wav')
pitch = pYAAPT.yaapt(signal)
print(pitch)
它是打印对象的地址。请帮助我
您是否尝试过?
pitch.samp_values
然后您可以像这样绘制它:
plt.plot(pitch.samp_values)
plt.show()