下面内容讲解不够清楚可以 点击连接看更详细思路:
数据可视化之 NumPy——ndarray (详细集全)
student_name
= np
.array
(['Tom', 'Lily', 'Jack', 'Rose'])
student_score
= np
.array
([[79, 88, 80], [89, 90, 92], [83, 78, 85], [78, 76, 80]])
print("Jack索引值:",student_name
=="Jack")
student_score
[student_name
=="Jack"]
转载请注明原文地址: https://lol.8miu.com/read-2530.html