在解决问题54时,Youtube视频的作者在Python2.7中定义函数时编写的代码是 self.cards = sorted(args,当我在Python 3.0上运行这段代码时,Pycharm编译器返回
File "C:/Users/Matthew/PycharmProjects/Project_Euler/Euler54.py",Project_Euler/Euler54.py", line 51, i
sp.interpolate.interp1d(x, y, kind='cubic')(new_x)new_x = np.linspace(x.min(), x.max(), new_length)AttributeError: 'function' object has no attribute 'min'
到目前为止,谷歌等还没有找到任何我所理解的结果。