Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D69章节的错误,这是我用豆包找的 #1063

Open
cpxjazzwang opened this issue Dec 24, 2024 · 1 comment
Open

D69章节的错误,这是我用豆包找的 #1063

cpxjazzwang opened this issue Dec 24, 2024 · 1 comment

Comments

@cpxjazzwang
Copy link

在NumPy 2.0版本中,ptp 方法已经从 ndarray 类中移除。因此,如果你在使用NumPy 2.0或更高版本,你需要使用 np.ptp(arr, ...) 来替代 arr.ptp()。
根据你提供的代码和错误信息,你正在尝试使用 array1.ptp(),这在NumPy 2.0及以后的版本中是不被允许的。你应该使用 np.ptp(array1) 来代替。
还有创造plt创造图表也失败了,是matplotlib 版本的原因么?

@jackfrued
Copy link
Owner

jackfrued commented Dec 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants