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

Update an_introduction_to_scientific_python_numpy.md #51

Open
wants to merge 1 commit into
base: v1.17
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ print(a.ndim) # >>>2
print(a.nbytes) # >>>200
```

正如你在上面的代码中看到的,NumPy数组实际上被称为ndarray。我不知道为什么他妈的它叫ndarray,如果有人知道请留言!我猜它代表n维数组。
正如你在上面的代码中看到的,NumPy数组实际上被称为ndarray。我不知道为什么它叫ndarray,如果有人知道请留言!我猜它代表n维数组。

数组的形状是它有多少行和列,上面的数组有5行和5列,所以它的形状是(5,5)。

Expand Down Expand Up @@ -254,4 +254,4 @@ print(c) # >>>[5 6 7 8 9]

## 文章出处

由NumPy中文文档翻译,原作者为 Ravikiran Srinivasulu,翻译至:[https://www.pluralsight.com/guides/different-ways-create-numpy-arrays](https://www.pluralsight.com/guides/different-ways-create-numpy-arrays)
由NumPy中文文档翻译,原作者为 Ravikiran Srinivasulu,翻译至:[https://www.pluralsight.com/guides/different-ways-create-numpy-arrays](https://www.pluralsight.com/guides/different-ways-create-numpy-arrays)