2024-04-25 23:29:50 发布
网友
这种差异可以在文档中看到。你知道吗
1.13 docs:
X : array_like
X
1.14 docs:
X : 1D or 2D array_likeData to be saved to a text file.
X : 1D or 2D array_like
Data to be saved to a text file.
它从不支持维度为0或大于2的数组。docstring和错误处理刚刚从1.13改进到1.14,以更好地反映这一点。你知道吗
您可以在pull请求中看到自己的提交:ENH: Better error message for savetxt when X.ndim > 2 or X.ndim = 0
While 1.13 seems to support that
在1.13中不支持它。1.14刚刚改进了错误消息:
1.13
1.14
在1.13.0
1.13.0
TypeError: Mismatch between array dtype ('int32') and format specifier ('%.18e %.18e %.18e %.18e')
在1.14.0
1.14.0
ValueError: Expected 1D or 2D array, got 4D array instead
它从不支持维度为0或大于2的数组。docstring和错误处理刚刚从1.13改进到1.14,以更好地反映这一点。你知道吗
您可以在pull请求中看到自己的提交:ENH: Better error message for savetxt when X.ndim > 2 or X.ndim = 0
在
1.13
中不支持它。1.14
刚刚改进了错误消息:在
1.13.0
在
1.14.0
相关问题 更多 >
编程相关推荐