![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python 小问题
夕阳下的候鸟
这个作者很懒,什么都没留下…
展开
-
pip安装慢
socket.timeout: The read operation timed out 更改pip源至国内镜像,显著提升下载速度 例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gevent,这样就会从清华这边的镜像去安装gevent库 ...原创 2020-03-14 23:24:51 · 153 阅读 · 0 评论 -
2019.6.7python之问题
当我对list用shape时出现’list’ object has no attribute ‘shape’ python中list, array的转换 上面的list_temp就是一个list类型,如果要进行numpy的一些数值运算,我们就需要将它转换为array类型。 转换如下: import numpy as np list_temp = [[1,2,3],[4,5,6]] list_tem...原创 2019-06-07 09:15:05 · 104 阅读 · 0 评论