>>> import numpy as np
>>> a = np.array([
... [1.73, 1.68, 1.71],
... [1, 2, 3, 4]
... ])
>>> a
array([[1.73, 1.68, 1.71], [1, 2, 3, 4]], dtype=object)
>>> a[0,2]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: too many indices for array
>>>
>>> a = np.array([
... [1.73, 1.68, 1.71],
... [1, 2, 3, 4]
... ])
>>> a
array([[1.73, 1.68, 1.71], [1, 2, 3, 4]], dtype=object)
>>> a[0,2]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: too many indices for array
>>>
2017-01-12
安装失败的可以使用linux下的apt-get命令来获得包,比如pandas包使用sudo apt-get install python-pandas,其他包就改变最后那个包的单词即可
2017-01-05
老师讲的不错,重在内容,很有启发性!谢谢老师的付出!
另外,不要轻信别人“鸡蛋里面挑骨头”的评价!他们有本事也出一套视频专辑,让我们挑一挑毛病,估计多数人是,要么是肚子里没有墨水,要么就是,没有口才---茶壶里煮饺子--有口道不出来!
不如你的人多了去了,希望老师再出新作品!
另外,不要轻信别人“鸡蛋里面挑骨头”的评价!他们有本事也出一套视频专辑,让我们挑一挑毛病,估计多数人是,要么是肚子里没有墨水,要么就是,没有口才---茶壶里煮饺子--有口道不出来!
不如你的人多了去了,希望老师再出新作品!
2017-01-04