我试图访问从csv文件中的数据创建的2d数组的一个元素。我可以很好地打印数组。当我试图访问数组以找到某个元素(即‘行’1‘列’5‘中的一个数字)时,它会抛出错误:
C:\Users\AClayton\Current\python begin\code_tester.py in create_alldata
我喜欢使用来自numpy的numpy,因为它是一种资源懒惰的方式来构建np.array对象。但是,它似乎不支持多维数组,而多维数组也非常有用。import numpy as np
""" A function returning 4 values of the same type. returnwork as expected
a[0, 1] # too