Problem Description
Sudoku is a popular single player game. The objective is to fill a 9x9 matrix with digits so that each column, each row, and all 9 non-overlapping 3x3 sub-matrices contain all o...
分类:
其他好文 时间:
2014-08-30 11:18:09
阅读次数:
286
最近由于公司的自动化测试工具需要将测试结果导出到excel中,奈何没有学SSH,导致无法在工具本身中添加(工具是开发做的),故转而使用python爬虫来做,开发过程中遇到了一个问题: 由于测试结果太多,需要翻页,而翻页时网址没有变化,这就导致抓取的时候没法依照网址去爬,遂去网上查找解决方法,最后找....
分类:
编程语言 时间:
2014-08-30 11:07:39
阅读次数:
4116
方式1:#!/usr/bin/env python#-*- encoding: utf-8 -*-def permutations(iterable, r=None): # permutations('ABCD', 2) --> AB AC AD BA BC BD CA CB CD DA DB DC...
分类:
编程语言 时间:
2014-08-30 09:54:29
阅读次数:
328
#!/usr/bin/env python#-*-encoding:utf-8 -*-'''例1:lst = [1, 34, 38, 33, 40, 10, 2, 45, 24, 29]#找出列表中的几个元素(不定,或许是一个,或许是所有),他们的平方和为 2386#return 倒序的元素列表 只...
分类:
编程语言 时间:
2014-08-30 09:53:29
阅读次数:
274
现在python火啊,每次OpenCV自带的ml模块都让我直呼坑爹,索性准备用python来做OpenCV后期的机器学习算法的处理。于是赶紧拿起这本书读读。
适合OpenCV和python都有一定基础的。。。。由于都比较熟悉这两个东西,我阅读之前比较关心的只有几个问题,具体的应用实例没有仔细看。
1.如何在python中安装opencv
2.OpenCV的Mat数据结构能否方便的转换成num...
分类:
编程语言 时间:
2014-08-30 08:46:39
阅读次数:
214
1.vim$zabbix_PATH/include/menu.inc.php284行增加以下内容284‘zatree‘=>array(285‘label‘=>_(‘Zatree‘),286‘user_type‘=>USER_TYPE_ZABBIX_USER,287‘default_page_id‘=>0,288‘force_disable_all_nodes‘=>true,289‘pages‘=>array(290array(‘url‘=>‘http:/..
分类:
其他好文 时间:
2014-08-30 02:28:09
阅读次数:
1092
1 "Hello World!"
The simplest thing that doessomething
Python | Java | Ruby | PHP| C#
Introduction
下面是RabbitMQ的一些术语:RabbitMQ是一个消息代理,实际上它从消息生产者接收消息,然后将其发送到消息消费者,在这之间可以根据特定规则对消息进行路由,缓冲,以...
分类:
Web程序 时间:
2014-08-30 02:24:18
阅读次数:
1169
组模型的封装
SettingGroup
//
// SettingGroup.h
// 25_彩票
//
// Created by beyond on 14-8-28.
// Copyright (c) 2014年 com.beyond. All rights reserved.
// 模型,一组(Section,Group),包括 组的header,组的footer,中间的条目(...
分类:
移动开发 时间:
2014-08-30 00:03:38
阅读次数:
293
改变多行文本字符串的缩进 任务: 有个包含多行文本的字符串,需要创建该字符串的一个拷贝。并在每行行首添加或者删除一些空格,以保证每行的缩进都是指定数目的空格数。解决方案:# -*- coding: UTF-8 -*-'''Created on 2014年8月29日path:E:\Se\core...
分类:
编程语言 时间:
2014-08-29 23:59:38
阅读次数:
380
先编写hello.py,实现Web应用程序的WSGI处理函数:# hello.pydef application(environ, start_response): start_response('200 OK', [('Content-Type', 'text/html')]) ret...
分类:
编程语言 时间:
2014-08-29 23:54:48
阅读次数:
239