Closed yangjiandendi closed 3 years ago
The shape class has iDims array. See the 2 unit tests below.
def test_simpleShape_1(self):
a=np.array([1,2,3])
x=a.shape[0]
print(x)
[TestMethod]
public void test_simpleShape_1()
{
var a = np.array(new int[] { 1, 2, 3 });
var x = a.shape.iDims[0];
print(x);
return;
}
The shape class has iDims array. See the 2 unit tests below.
def test_simpleShape_1(self):
a=np.array([1,2,3]) x=a.shape[0] print(x)
[TestMethod] public void test_simpleShape_1() { var a = np.array(new int[] { 1, 2, 3 }); var x = a.shape.iDims[0]; print(x); return; }
how can i get the value from .shape? like in numpy i have
a=[1,2,3]
, and i could getx=a.shape[0]
.