- 博客(4)
- 资源 (6)
- 收藏
- 关注
原创 Ubuntu16.04+cuda10.0+cudnn8.0 配置pytorch环境
Ubuntu16.04+cuda10.0+cudnn8.0 pytorch环境 1.conda 换源(linux): 将以上配置文件写在~/.condarc中 终端命令 :sudo gedit ~/.condarc,将以下内容复制进去,并保存退出 channels: - https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/ - https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/ - htt
2020-10-16 18:02:00
371
原创 python3 多维赋值问题,可能整列被赋值
近期写程序时发现多维列表赋值的一个问题:给某一元素赋值,结果却整列都被赋值了 方式1: a = [0 for i in range(5)] b = [a for _ in range(5)] print(b) 得到: [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]] #给列表第...
2019-03-25 10:46:52
1530
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
2