NumPy包安装 然后打开pychrom ,导入numpy执行以下代码 from numpy import * print(eye(4)) # 运行结果如下: [[1. 0. 0. 0.] [0. 1. 0. 0.] [0. 0. 1. 0.] [0. 0. 0. 1.]]