python
文章平均质量分 57
郝易行
这个作者很懒,什么都没留下…
展开
-
Python学习记录2
字符串‘’tuple元组()list列表[]set集合{}:没有顺序,元素不重复原创 2021-02-09 21:42:14 · 56 阅读 · 0 评论 -
python学习记录1
python idle使用alt+p回到上一个语句原创 2021-02-06 10:19:05 · 83 阅读 · 0 评论 -
关于Pytorch使用CUDA进行GPU加速的几个问题
目录测试pytorch版本和与cuda版本是否匹配:版本不匹配GPU占用率多线程问题测试pytorch版本和与cuda版本是否匹配:import torchprint(torch.__version__)print(torch.cuda.is_available())#测试python版本import sysprint(sys.version)如果显示True,那么大概率是没有问题的。如果显示False,而且你也确定安装好CUDA与cudnn可能是..原创 2021-01-26 20:13:14 · 3852 阅读 · 2 评论 -
Python短路逻辑/其他语法
Python短路逻辑短路逻辑思想:从左往右进行运算,只有当第一个操作数的值无法确定逻辑运算的结果时,才对第二个操作数进行求值。3 and 443 or 430 and 300 or 44(not 1) or (0 and 1) or (3 and 4) or (5 and 6) or (7 and 8 and 9)4...原创 2020-06-21 13:10:44 · 175 阅读 · 0 评论