![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
钟子悦
CS
展开
-
python 3 urllib 没有 urlencode 属性
今天写代码,发现报了个AttributeError: module 'urllib' has no attribute 'urlencode'的错误。百度了一下,发现python3的urllib结构不太一样,要写成就行了urllib.parse.urlencode原创 2017-10-28 00:27:59 · 19984 阅读 · 4 评论 -
pip 加速
pip install tensorflow-gpu -i https://pypi.tuna.tsinghua.edu.cn/simple体验飞一般的速度原创 2018-06-04 22:40:54 · 390 阅读 · 0 评论 -
python @contextmanager
今天看代码看到了@contextmanager记录一下@contextlib.contextmanagerThis function is a decorator that can be used to define a factory function for with statement context managers, without needing to create a clas...原创 2019-04-22 12:06:11 · 638 阅读 · 0 评论