上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 29 下一页
摘要: 笔记-redis-订阅系统 1. 发布/订阅pub/sub 1.1. 基本命令 PUBLISH channel message #将信息发送到指定的频道。 SUBSCRIBE channel [channel ...] #订阅一个或多个频道的信息。 UNSUBSCRIBE [channel [cha 阅读全文
posted @ 2019-05-27 21:13 木林森__𣛧 阅读(224) 评论(0) 推荐(0)
摘要: 笔记-capped collection 1. collection 1.1. 简介 集合分为固定与非固定collection,capped collection 1.1.1. capped collections Capped collections are fixed-size collecti 阅读全文
posted @ 2019-05-08 22:06 木林森__𣛧 阅读(438) 评论(0) 推荐(0)
摘要: 笔记-mongodb数据操作 1. 数据操作 1.1. 插入 db.COLLECTION_NAME.insert(document) 案例: db.inventory.insertOne( { item: "canvas", qty: 100, tags: ["cotton"], size: { h 阅读全文
posted @ 2019-05-08 21:37 木林森__𣛧 阅读(367) 评论(0) 推荐(0)
摘要: 转自 https://blog.csdn.net/asdfsadfasdfsa/article/details/60872180 MongoDB与MySQL的插入、查询性能测试 转自 https://blog.csdn.net/asdfsadfasdfsa/article/details/60872 阅读全文
posted @ 2019-05-07 23:42 木林森__𣛧 阅读(4409) 评论(0) 推荐(0)
摘要: 笔记-python-float(‘inf’) 看算法时发现了flaot(‘inf’)。 Python中可以用如下方式表示正负无穷: float("inf"), float("-inf") 利用 inf 做简单加、乘算术运算仍会得到 inf >>> m inf >>> 1+m inf >>> m-2 阅读全文
posted @ 2019-04-23 23:46 木林森__𣛧 阅读(749) 评论(0) 推荐(1)
摘要: 笔记-django- HttpRequest/Response 1. HttpRequest/Response When a page is requested, Django creates an HttpRequest object that contains metadata about th 阅读全文
posted @ 2019-04-23 17:56 木林森__𣛧 阅读(356) 评论(0) 推荐(0)
摘要: 笔记-django-视图 1. dispatch 1.1. overview To design URLs for an app, you create a Python module informally called a URLconf (URL configuration). This mod 阅读全文
posted @ 2019-04-23 17:52 木林森__𣛧 阅读(166) 评论(0) 推荐(0)
摘要: 笔记-消息系统 1. 常用消息系统 RabbitMQ RabbitMQ是使用Erlang编写的一个开源的消息队列,本身支持很多的协议:AMQP,XMPP, SMTP, STOMP,也正因如此,它非常重量级,更适合于企业级的开发。同时实现了Broker构架,这意味着消息在发送给客户端时先在中心队列排队 阅读全文
posted @ 2019-04-21 16:15 木林森__𣛧 阅读(151) 评论(0) 推荐(0)
摘要: 笔记-django第一个项目 1. 创建项目 安装 Django 之后,现在有了可用的管理工具 django-admin。可以使用 django-admin 来创建一个项目: 看下django-admin 的命令介绍: 1.1. startproject django-admin startproj 阅读全文
posted @ 2019-04-20 21:11 木林森__𣛧 阅读(740) 评论(0) 推荐(0)
摘要: 笔记-scrapy-Selector 1. Selector scrapy自带文本解析器,支持xpath,css等方法。 1.1. 基础使用 调试时常需要从text中解析数据,使用方法如下: from scrapy.selector import Selector page_data = Selec 阅读全文
posted @ 2019-04-19 22:02 木林森__𣛧 阅读(192) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 29 下一页