How to fix TypeError: order must be str, not int
How to fix TypeError: order must be str, not int
我正在使用第 3 方代码来处理一些文件,这些文件是在 python 中编写的。错误代码是这样的:
outfile.writeframes(int16(output.ravel(1)*32767.0).tostring())
不确定我应该如何修复它,但这是 Python 3.9 上的 运行。
看起来像 paulstretch 或类似的东西,这对我有用
outfile.writeframes(int16(output.ravel('F')*32767.0).tostring())
检查:https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.ravel.html#numpy.ravel
我正在使用第 3 方代码来处理一些文件,这些文件是在 python 中编写的。错误代码是这样的:
outfile.writeframes(int16(output.ravel(1)*32767.0).tostring())
不确定我应该如何修复它,但这是 Python 3.9 上的 运行。
看起来像 paulstretch 或类似的东西,这对我有用
outfile.writeframes(int16(output.ravel('F')*32767.0).tostring())
检查:https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.ravel.html#numpy.ravel