上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: 1.安装 自动安装客户端 默认有10个数据库,通过url进行查询,存储的是键值对 key(相当于表名) win服务安装卸载 https://www.cnblogs.com/lezhifang/p/7027903.html https://www.cnblogs.com/lc-chenlong/p/4 阅读全文
posted @ 2018-12-03 18:58 Gaoyongxian666 阅读(168) 评论(0) 推荐(0)
摘要: 1.eval 2.json 阅读全文
posted @ 2018-12-03 18:06 Gaoyongxian666 阅读(240) 评论(0) 推荐(0)
摘要: commands好像python3.6被去除了,它现在被subprocess替代了 阅读全文
posted @ 2018-12-03 18:03 Gaoyongxian666 阅读(212) 评论(0) 推荐(0)
摘要: celery 4.2 -Ofair现在是默认的调度策略 关于-Ofair命令行选项的作用存在很多混淆,并且在解释中使用术语“预取”可能没有帮助,因为这个术语在AMQP中有多么混乱。 当使用prefork池的Celery worker接收任务时,它需要将该任务委托给子进程执行。 prefork池具有可 阅读全文
posted @ 2018-12-03 17:59 Gaoyongxian666 阅读(207) 评论(0) 推荐(0)
摘要: form 表单 post之后 ,重新定向当前页面的get请求 这是因为,form表单提交的时候,按钮在form表单里面 阅读全文
posted @ 2018-12-02 20:23 Gaoyongxian666 阅读(1493) 评论(0) 推荐(0)
摘要: import os if not os.path.exists('foldername'): os.mkdir('foldername') 阅读全文
posted @ 2018-12-01 16:48 Gaoyongxian666 阅读(193) 评论(0) 推荐(0)
摘要: 一 module通常模块为一个文件,直接使用import来导入就好了。可以作为module的文件类型有".py"、".pyo"、".pyc"、".pyd"、".so"、".dll"。 二 package通常包总是一个目录,可以使用import导入包,或者from + import来导入包中的部分模块 阅读全文
posted @ 2018-11-30 20:21 Gaoyongxian666 阅读(2038) 评论(0) 推荐(0)
摘要: 1、队列介绍 任务队列用作跨线程或机器分配工作的机制。 任务队列的输入是称为任务的工作单元。 专用工作进程不断监视任务队列以执行新工作。 Celery通过消息进行通信,通常使用经纪人(brokers)在客户和工人之间进行调解。 为了启动任务,客户端向队列添加消息,然后经纪人(brokers)将该消息 阅读全文
posted @ 2018-11-30 20:11 Gaoyongxian666 阅读(2572) 评论(0) 推荐(0)
摘要: 官方教程:https://channels.readthedocs.io/en/latest/tutorial/part_1.html 官方教程给出了一个聊天室的例子,主要应用了channel_layer,也就是组的概念。 1、简介 不同于HTTP请求,WebSockets协议使用双向直接通信,也就 阅读全文
posted @ 2018-11-30 13:27 Gaoyongxian666 阅读(790) 评论(0) 推荐(0)
摘要: 1.在ubuntu的可视版本中安葬输入法要主要 在拼音下的英文模式 是有问题的比如在vi编辑里是不能使用的 2.Python文件运行时报TabError: inconsistent use of tabs and spaces in indentation 原因:说明Python文件中混有Tab和S 阅读全文
posted @ 2018-11-28 17:04 Gaoyongxian666 阅读(117) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页