shape attribute will return a tuple containing the rows and columns, so you can simply index that to find the number of rows: >>> import numpy as np. >>> a = np ...
確定! 回上一頁