Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes the ave ...
分类:
其他好文 时间:
2017-10-15 14:15:22
阅读次数:
135
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leadin ...
分类:
其他好文 时间:
2017-10-14 21:14:06
阅读次数:
144
本节内容 一 RabbitMQ介绍 二 RabbitMQ安装配置 三 RabbitMQ的Python实现-pika 1. 生产者消费者 2. 工作队列 3. 持久化和公平分发 4. 发布与订阅 5. RPC 附:概念汇总 1. RabbitMQ使用场景 RabbitMQ是一个消息中间件,消息中间件【 ...
分类:
其他好文 时间:
2017-10-14 21:10:36
阅读次数:
290
主要是遇到 Error 24, too many open files. 下面这种方法可以debug打开了哪些文件。 ...
分类:
编程语言 时间:
2017-10-14 20:01:00
阅读次数:
147
Flex 是 Flexible Box 的缩写,意为"弹性布局",用来为盒状模型提供最大的灵活性。 flex 的核心的概念就是 容器 和 轴。容器包括外层的 父容器 和内层的 子容器,轴包括 主轴 和 交叉轴。 1. 容器 1.1 父容器 设置子容器沿主轴排列:justify-content(水平方 ...
分类:
其他好文 时间:
2017-10-14 18:33:00
阅读次数:
159
今天记录下scrapy将数据存储到本地和数据库中,不是不会写,因为小编每次都写觉得都一样,所以记录下,以后直接用就可以了-^o^-1.本地存储 设置pipel ines.pyclass Ak17Pipeline(object): def __init__(self): self.file = ope... ...
分类:
数据库 时间:
2017-10-14 18:31:21
阅读次数:
1197
实现一个栈算法,要求实例对象能够进行切片操作#!/usr/bin/python #coding=utf-8 class Stack(object) : def __init__(self,size): #类的构造函数 self.size = size self.stack = [] def __st... ...
分类:
编程语言 时间:
2017-10-14 18:28:49
阅读次数:
166
During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally speaking, vil ...
分类:
其他好文 时间:
2017-10-14 01:45:56
阅读次数:
150
一、无参 二、有参 三、事件修饰符 1、.stop 2、.prevent 3、.capture 4、.self 5、.once 修饰符串联顺序不同,效果有可能不同。@click.prevent.self会阻止所有的点击,而@click.self.prevent只会阻止元素上的点击。 ...
分类:
其他好文 时间:
2017-10-13 20:05:01
阅读次数:
841
class Vector2d: typecode = 'd' def __init__(self,x,y): self.__x = float(x) self.__y = float(y) @property def x(self): return self.__x @property def y( ...
分类:
编程语言 时间:
2017-10-13 19:15:00
阅读次数:
196