python3
41167361
这个作者很懒,什么都没留下…
展开
-
报错MISCONF Redis is configured to save RDB snapshots
启动Flask报错:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (原创 2020-07-31 21:10:15 · 160 阅读 · 0 评论 -
在ubuntu环境下搭建python virtualenv虚拟环境,及基本命令
在ubuntu环境下搭建python virtualenv虚拟环境,及基本命令 1.安装 查看是否安装virtualenv 如果在列表里有如下图的安装包,表示已经安装 如果没有,请用如下命令安装 pip3 install virtualenv pip3 install virtualenvwrapper 如果出现:locale.Error: unsupported locale setting的错误 输入如下命令: export LC_ALL=c 然后重新执行安装命令,安装成功后 用cd命令回到家目录,原创 2020-07-23 12:08:24 · 640 阅读 · 0 评论 -
python3的多线程实现
python的多线程虽然在GIL的作用下其执行速度有一定影响,但是在有些情况下还是可以极大的提高python程序的执行速度的,比如I\O密集的程序。话不多说直接上代码,如有错误还望指点。原创 2020-04-03 20:18:19 · 403 阅读 · 0 评论