W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_numpy_array_filter_4.py:
import numpy as np arr = np.array([61, 62, 63, 64, 65]) filter_arr = arr > 62 newarr = arr[filter_arr] print(filter_arr) print(newarr)