Files

1022 B

id, title, challengeType, videoId, bilibiliIds, dashedName
id title challengeType videoId bilibiliIds dashedName
5e9a093a74c4063ca6f7c156 Numpy 布尔值的数组 11 N1ttsMmcVMM
aid bvid cid
208091324 BV1Qh411p7V8 409012711
numpy-boolean-arrays

--description--

在视频中我们使用的编辑器工具是在 notebook.ai 这个平台,你也可以选择用其他的平台,比如说 Google Colab 也是一个不错的选择。

以下有更多的资料:

--question--

--text--

以下代码会打印出什么?

a = np.arange(5)

print(a <= 3)

--answers--

[False, False, False, False, True]

[5]

[0, 1, 2, 3]

[True, True, True, True, False]

--video-solution--

4