
Python中常见报错类型及处理方式
self.键盘上的钢琴师.LX
only yourself
展开
-
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming th
pip 老安装失败Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852) - skipping解决方法python -m pip install --upgrade pip --us原创 2021-11-08 08:58:14 · 1577 阅读 · 0 评论 -
删除fences桌面整理软件
先到官网下载Fences3.0版本,安装到原来的路径,它会自动覆盖原来的文件,这样以后,在到windows的卸载下面,删除Fences就可以了原创 2021-10-25 20:48:26 · 769 阅读 · 0 评论 -
np.where函数的使用
np.where()a = np.array([1,1,2,2,3,3])np.where(a==1)[0]Out[7]: array([0, 1], dtype=int64)print(np.where(a==1)[0])[0 1]小结:由此可见,np.where返回的是一个元组,需要加【0】索引才能返回的是位置原创 2021-10-14 14:29:52 · 667 阅读 · 0 评论 -
tensorboard的查看方法
关于tensorboard的查看方法首先版本是1.9的tensorflow,注意只有1版本有tensorboard需要在设置一下端口根据这篇文章设置一下就好了链接: link.方法在pycharm里面的输入一下代码这里报错也没有关系的不要直接点这个网址,一般会报错在浏览器中输入;http://127.0.0.1:6008/然后进入一下页面这里报错没有关系的啊!!然后切换至GRAPHS的选项卡里这里就可以看到图了...原创 2021-10-08 11:07:35 · 1479 阅读 · 0 评论 -
Python常见的报错类型及解决方法
关于Python常见的报错类型及解决方法TypeError: ‘numpy.float32’ object does not support item assignment表示的是你的数据形状不匹配:例如:a = np.zeros(2,dtype = int)a[1][2] = 5#就会报错,原因是一位数组,确当成二维数组使用#应该为a = np.zeros((2,3),dtype = int)a[1][2] = 5#这样就不会报错了哈...原创 2021-10-03 08:51:48 · 1418 阅读 · 0 评论