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 indexing.md #24

Open
wants to merge 1 commit into
base: master
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
2 changes: 1 addition & 1 deletion docs/user/basics/indexing.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ array([0, 1, 2, 3, 4])

请注意,尽管第二种情况效率较低,因为在第一个索引之后创建了一个新的临时数组,该索引随后被索引为2:``x[0,2] = x[0][2]``

请注意那些习惯于IDL或Fortran内存顺序的内容,因为它与索引有关。NumPy使用C顺序索引这意味着最后一个索引通常代表最快速变化的内存位置,与Fortran或IDL不同,其中第一个索引代表内存中变化最快的位置。这种差异代表了混淆的巨大潜力
那些习惯于IDL或Fortran内存顺序的人要注意一下,因为内存顺序与索引有关。NumPy使用C顺序索引这意味着最后一个索引通常代表最快速变化的内存位置。不同的是,Fortran或IDL的第一个索引代表内存中变化最快的位置。这种差异非常容易引起混淆

## 其他索引选项

Expand Down