|
import numpy*后代码如下,请问什么原因?
>>> a=random.rand(4,4)
>>> >>> a
array([[ 0.03405372, 0.21475911, 0.75483391, 0.79714734],
[ 0.21789999, 0.45130703, 0.01413774, 0.72371815],
[ 0.58142993, 0.0329091 , 0.96866976, 0.06709081],
[ 0.95876239, 0.47321448, 0.2110232 , 0.36903547]])>> >
a.I
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'numpy.ndarray' object has no attribute 'I'
>>> >>>
|
|