![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python异常
凤凰谷1
这个作者很懒,什么都没留下…
展开
-
[WinError 145] 目录不是空的。: '../util\\__pycache__'
删除该文件夹的时候报错,查看发现该文件夹下有文件,无法删除原创 2019-05-07 16:27:18 · 3413 阅读 · 0 评论 -
python中导入 train_test_split提示错误
原因: 在python3.6中sklearn已弃用train_test_split,导致导入报错解决方式,用model_selection模块导入:from sklearn.model_selection import train_test_split经测试,在python2中也是使用该方式导入train_test_split模块...原创 2019-05-15 13:47:47 · 17458 阅读 · 5 评论 -
AttributeError: module 'gevent' has no attribute 'spawn'或者module 'gevent' has no attribute 'joinall'
使用gevent模块创建协程代码时报错:pydev debugger: process 10700 is connectingConnected to pydev debugger (build 183.5912.18)Traceback (most recent call last): File "F:\Program Files\JetBrains\PyCharm 2018.3....原创 2019-05-25 03:46:51 · 1803 阅读 · 0 评论 -
python异步IO(asyncio)协程实战
1.概念描述: asyncio 是用来编写并发代码的库,使用async/await语法。 asyncio 被用作多个提供高性能 Python 异步框架的基础,包括网络和网站服务,数据库连接库,分布式任务队列等等。 asyncio 往往是构建 IO 密集型和高层级结构化网络代码的最佳选择 event_loop 事件循环:程序开启一个无限的循环,程序员会把一...原创 2019-05-23 00:51:23 · 1304 阅读 · 0 评论