![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工具
xiaomingzaihuake
这个作者很懒,什么都没留下…
展开
-
numpy 数组进行矩阵运算
在对numpy数组进行矩阵运算时,尤其要注意一维数组的维度对应问题。 import numpy as np from numpy.linalg import * a = np.array([[1,2,3],[4,5,6],[7,8,9]]) b = np.array([[1,2,4],[6,8,0]]) c = np.array([1,3,5]) #一维数组 d = np.array([[2,4,6]]) #注意c与d 的区别 print(a,a.shape) print(b,b.shape) pri原创 2021-04-20 11:01:44 · 360 阅读 · 0 评论 -
Jupyter Notebook默认路径修改
运行jupyter notebook两种方式: 1.命令行运行; 2.快捷方式运行(在anoconda中安装的)。 如果安装过多个jupyter notebook,以命令行运行时要确认运行的是哪一个jupyter,可以通过where jupyter命令查看位置。 win+R,输入cmd,调出命令行; where jupyter 1.通过修改配置文件,更换启动目录: jupyter notebook的配置文件一般在**C:\用户\【用户名】.jupyter**文件夹中; 打开jupyter_n原创 2021-04-20 10:30:54 · 126 阅读 · 1 评论