numpy的item函数用于返回指定索引处的数据。 import numpy as np a = np.random.randint(9, size=(3, 3)) print("a =", a) print