![]() |
#2
deli1232019-05-05 21:17
|
U = np.float64(U)
if (U.ndim != 1 and U.shape[-1] != self.nu):
其中 U.shape[-1]报错,Value 'U.shape' is unsubscriptablepylint(unsubscriptable-object)
如果改成 U.shape(-1)报错,Too many positional arguments for method call
环境 Anaconda python 3.7.3
该如何正确应用U.shape(-1)