# encoding: utf-8
'''
@author: yangsen
@license:
@contact:
@software:
@file: numpy_mat.py
@time: 18-8-25 下午9:56
@desc:
'''
import numpy as np
a = np.arange(9).reshape(3,3)


# 行
a[1]
a[[1,2]]
a[np.array([1,2])]

# 列
a[:,1]
a[:,[1,2]]
a[:,np.array([1,2])]
[(12, 'numpy.arange', 'np.arange', True, 'import numpy as np\n'), (18, 'numpy.array', 'np.array', True, 'import numpy as np\n'), (23, 'numpy.array', 'np.array', True, 'import numpy as np\n')]