WIn10使用笔记
Ubuntu使用笔记
常用命令
- pip download 只下载不安装命令的使用方法:
pip download -d ./packs -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip freeze >requirements.txt
将list装换为以为数组
- a = np.array([1,2,3])
- a=np.array([a])
- a=np.array([[1,2,3]]) #两个中括号是矩阵,否则就是list
- a=a.reshape(1,3)