I'm currently trying to learn Numpy and Python.
(我目前正在尝试学习Numpy和Python。)
Given the following array: (给定以下数组:)
import numpy as np
a = np.array([[1,2],[1,2]])
Is there a function that returns the dimensions of a
(ega is a 2 by 2 array)?
(是否有一个返回的尺寸的函数a
(EGA是一个2×2阵列)?)
size()
returns 4 and that doesn't help very much.
(size()
返回4,这并没有太大帮助。)
ask by morgan freeman translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…