在python 2中np.sort函数可以正常运行。在python3中会出错返回axis=-1,解决方法,将np.sort()函数转化为sorted()函数即可。
关于python2和python3 sort函数出错的问题
最新推荐文章于 2021-09-26 10:46:01 发布
在python 2中np.sort函数可以正常运行。在python3中会出错返回axis=-1,解决方法,将np.sort()函数转化为sorted()函数即可。