如何打印对象的值?

时间:2019-07-05 10:01:47

标签: python pitch-tracking

如何打印对象的值?

    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)

它改为打印对象的地址。请帮助我

1 个答案:

答案 0 :(得分:1)

您尝试过吗?

pitch.samp_values

然后您可以像这样绘制它:

plt.plot(pitch.samp_values)
plt.show()