2020-08-13 10:00:20 +00:00
|
|
|
---
|
|
|
|
id: 5e9a0a8e09c5df3cc3600ed2
|
2021-07-03 14:37:10 +00:00
|
|
|
title: Numpy 是什么?
|
2020-08-13 10:00:20 +00:00
|
|
|
challengeType: 11
|
|
|
|
videoId: 5Nwfs5Ej85Q
|
2021-01-13 02:31:00 +00:00
|
|
|
dashedName: what-is-numpy
|
2020-08-13 10:00:20 +00:00
|
|
|
---
|
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
# --question--
|
2020-08-13 10:00:20 +00:00
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
## --text--
|
2020-08-13 10:00:20 +00:00
|
|
|
|
2021-07-03 14:37:10 +00:00
|
|
|
为什么 Numpy 数组要比常规的 Python 列表更快?
|
2020-08-13 10:00:20 +00:00
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
## --answers--
|
2020-08-13 10:00:20 +00:00
|
|
|
|
2021-07-03 14:37:10 +00:00
|
|
|
Numpy 在遍历对象时不执行类型检查。
|
2020-08-13 10:00:20 +00:00
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
---
|
|
|
|
|
2021-07-03 14:37:10 +00:00
|
|
|
Numpy 使用固定类型。
|
2020-12-16 07:37:30 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2021-07-03 14:37:10 +00:00
|
|
|
Numpy 使用连续内存。
|
2020-12-16 07:37:30 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2021-07-03 14:37:10 +00:00
|
|
|
上述所有的。
|
2020-12-16 07:37:30 +00:00
|
|
|
|
|
|
|
## --video-solution--
|
|
|
|
|
|
|
|
4
|
|
|
|
|