📜  NumPy.ndarray 对象不可调用错误 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:35.235000             🧑  作者: Mango

代码示例1
import numpy as np

fruits = np.array(["Apple","Grapes","WaterMelon","Orange","Kiwi"])
last_fruit = fruits[-1]

print("The last fruit in the array is {} ".format(last_fruit))