mirror of
https://github.com/apachecn/ailearning.git
synced 2026-02-02 18:09:10 +08:00
Update 031.md
This commit is contained in:
@@ -858,7 +858,7 @@ array([[ 0, 1, 2, 3, 4, 5],
|
||||
In [51]:
|
||||
|
||||
```py
|
||||
condition = array([0,1,1,0,1],
|
||||
condition = array([0,1,1,0,1,0],
|
||||
dtype=bool)
|
||||
a[condition]
|
||||
|
||||
@@ -1182,4 +1182,4 @@ Out[69]:
|
||||
```py
|
||||
(array([2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4], dtype=int64),
|
||||
array([3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4], dtype=int64))
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user