如何打印对象的值?
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)
它改为打印对象的地址。请帮助我
答案 0 :(得分:1)
您尝试过吗?
pitch.samp_values
然后您可以像这样绘制它:
plt.plot(pitch.samp_values)
plt.show()