摘要: 我的电脑启动时候提示: sudo /usr/local/opt/mysql@5.7/support-files/mysql.server startPassword:Starting MySQL. ERROR! The server quit without updating PID file (/ 阅读全文
posted @ 2019-09-19 23:54 就是想学习 阅读(8103) 评论(0) 推荐(0)
摘要: modif_dict = {'name': None, 'age':None} 假如上面的数据是一个大量并发读取并修改的数据 modif_dicf['name'] = 'xiaom' modif_dict['age'] = 18 像上面这样的数据有大量的请求写入,为了防止高并发时数据重复写入,数据出 阅读全文
posted @ 2019-09-19 22:39 就是想学习 阅读(784) 评论(0) 推荐(0)
摘要: 地址:https://www.jianshu.com/p/7990ca55da69 注意在最后的配置文件中,不能存在#解释,要不然会报错。 阅读全文
posted @ 2019-09-19 18:00 就是想学习 阅读(637) 评论(0) 推荐(0)
摘要: pip freeze > requirements.txt 导出所有的pip 安装包信息到requirements.txt 新环境倒入 pip install -r requirements.txt txt 文本 txt 文本 txt 文本 文本 阅读全文
posted @ 2019-09-19 16:46 就是想学习 阅读(182) 评论(0) 推荐(0)
摘要: 从本地推送到远程github的空仓库新建github仓库里面不要勾选相关设置,防止上推到时候冲突。本地首先 git init 初始化工作区发现一些工作,比如新建文件等等git add .提交到缓存区git commit -m 'msg' 提交到仓库git remote add origingit r 阅读全文
posted @ 2019-09-19 02:19 就是想学习 阅读(154) 评论(0) 推荐(0)
摘要: 事例: 豆瓣: pip install django==1.11.21 -i https://pypi.douban.com/simple清华: -i https://pypi.tuna.tsinghua.edu.cn/simple 导出pip安装的所有的包: pip freeze > piplis 阅读全文
posted @ 2019-09-19 00:25 就是想学习 阅读(798) 评论(0) 推荐(0)
摘要: python -m venv .venv 前面三个单词组成命令,后面将在文件夹里面生产.venv的虚拟环境文件 工作目录在哪里,虚拟环境建在哪里。 source .venv/bin/activate 激活python虚拟环境 后续 pip install 安装相关包 退出虚拟环境 终端执行命令:de 阅读全文
posted @ 2019-09-19 00:21 就是想学习 阅读(404) 评论(0) 推荐(0)