Note: 菜鸟学习笔记,简单记录,代码手打 IDE: IPython/Jupyter/Pycharm numpy包学习记录 高级数据结构ndarray numpy包是pandas、matplotlib、seaborn等科学计算包的基础 # pip install numpy import numpy as np from numpy import pi # 从txt读取矩阵数据 a = np.genfromtxt('1.txt', delimiter=',', dtype=str) # 数据存储 matrix = np.array([ [1,2,3],[4,5,6],[7,8,9] ])