码迷,mamicode.com
首页 >  
搜索关键字:beat    ( 285个结果
54.django视图层(views)的视图函数
1.视图层概念 视图函数,其实就是一个简单的函数,它接收web请求并返回web响应(响应的可以是一个html,一个重定向,一个xml文档等等) 每个视图函数都负责返回一个HttpResponse对象。 1.1 HttpRequest对象属性 django将请求报文中的请求行、首部信息、内容主体封装成 ...
分类:其他好文   时间:2018-06-24 17:03:17    阅读次数:154
mongos-sharding连接池配置
ShardingTaskExecutorPoolMaxSize 连接池最大大小,默认没有限制 对于mongod最大连接控制:ShardingTaskExecutorPoolMaxSize taskExecutorPoolSize ShardingTaskExecutorPoolMinSize 连接池 ...
分类:其他好文   时间:2018-06-23 11:33:16    阅读次数:204
python-fullstack-s13-day08-python基础
1 f = open("name",mode="r",encoding="UTF-8") 2 print(type(f)) 3 for line in f: 4 print(line.strip()) 5 f.close() 6 7 b = open("shotcut/TIM图片2018060809... ...
分类:编程语言   时间:2018-06-14 18:13:44    阅读次数:162
leetcode-605-Can Place Flowers
题目描述: Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots ...
分类:其他好文   时间:2018-06-09 19:51:24    阅读次数:171
leetcode-121-Best Time to Buy and Sell Stock
题目描述: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one trans ...
分类:其他好文   时间:2018-05-29 13:11:16    阅读次数:142
Mycat 读写分离+分库分表
首先来看分库分表,分库分表一般来说都是一起说的,但是实际上分库跟分表是有区别的,简单来说有垂直和水平两种方式,垂直就是将表按字段进行拆分,水平就是将表按照数据分布来做行拆分。具体的肯定还是有区别,本文不再进行阐述,主要介绍按照字段的分布进行数据行的拆分 本身理解来说Mycat实现的应该是分库,也就是 ...
分类:其他好文   时间:2018-05-20 13:04:30    阅读次数:206
CANopen 基础
1. TPDO和RPDO都是针对从站来说的,协议上没有有讲任何一个关于主站的概念,协议就只是定义从站,没有定义主站任何东西。TPDO:从站->主站RPDO:主站->从站 2. PDO的COB-ID是用来唯一标识一个PDO报文的,不同的PDO设置不同的COB-ID。 3. 主站和从站的通信过程基本是这 ...
分类:其他好文   时间:2018-05-19 19:41:24    阅读次数:190
leetcode-762-Prime Number of Set Bits in Binary Representation
题目描述: Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary represen ...
分类:其他好文   时间:2018-05-15 16:04:34    阅读次数:167
springMVC-RESTful支持
RESTful支持 什么是restful? Restful就是一个资源定位及资源操作的风格。不是标准也不是协议,只是一种风格,是对http协议的诠释。 资源定位:互联网所有的事物都是资源,要求url中没有动词,只有名词。没有参数 Url格式:http://blog.csdn.net/beat_the ...
分类:编程语言   时间:2018-05-14 18:12:06    阅读次数:187
leetcode-520-Detect Capital
题目描述: Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when ...
分类:Windows程序   时间:2018-04-30 13:36:17    阅读次数:214
285条   上一页 1 ... 13 14 15 16 17 ... 29 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!