清华:https://pypi.tuna.tsinghua.edu.cn/simple阿里云:http://mirrors.aliyun.com/pypi/simple/中国科技大学: https://pypi.mirrors.ustc.edu.cn/simple/华中理工大学:http://pypi.hustunique.com/山东理工大学:http://pypi.sdutlinux.org/ jupyter notebook
安装
pip install notebook -i https://pypi.tuna.tsinghua.edu.cn/simple
安装 jupyter notebook 后,还需要使用 ipykernel 生成虚拟环境的kernel(这一步也是在虚拟环境中进行)
python -m ipykernel install --user --name 环境名
jupyter 修改默认文件存储路径
更改Jupyter保存位置、路径详细步骤
临时修改
jupyter修改默认“文件存储路径”,使用这种方法,随时随地可修改
dir(): 能让我们知道“工具箱”里有什么东西,dir 是 directory 的缩写.
每个对象都有不同的函数和常量。每个函数和常量都成为一个属性。dir()的作用就是将这个对象中的所有属性显示出来,这些属性以列表的方式储存。
help(): 查看帮助,让我们知晓“工具”的使用方法,所查询函数不加()就足以得到一个简明的信息
三种方式比较 2. 加载数据Dataset
from torch.utils.data import Dataset utils : utilities
to be continue...



