3

如何打印对象的值?

    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)

而是打印对象的地址。请帮我

4

1 回答 1

1

你有没有尝试过?

pitch.samp_values

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

plt.plot(pitch.samp_values)
plt.show()
于 2019-07-05T10:09:52.727 回答