题目:Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order r....
分类:
编程语言 时间:
2014-07-28 11:34:20
阅读次数:
297
I am using pybrain on my Linuxmint 13 x86_64 PC.As what it is described: PyBrain is a modular Machine Learning Library for Python. Its goal is to offe...
分类:
编程语言 时间:
2014-07-28 11:33:00
阅读次数:
292
近期一直在学习python和批处理,来将工作中的手工操作的低效环节用脚本自动实现。已经实现了几个脚本。但是命令行窗口,总是不太友好,对执行结果的反馈也不清楚,就想实现可视化。在网上找到Python可视化的编程的一个方法,周末专心实现了一下,效果还行,算是有头绪了。http://blog.sina.c...
分类:
编程语言 时间:
2014-07-28 11:32:30
阅读次数:
407
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'importsys,datetimefromPyQt4.QtCoreimportQtfromPyQt4importQtGui,QtCore,QtfromaaimportUi_Formcla...
分类:
其他好文 时间:
2014-07-28 11:30:10
阅读次数:
855
本文继续沿用第三章的 XML 示例文档。选取价格高于30的 price 节点# 从父节点进行筛选>>> root.xpath('//book[price>30]/price')[]# 直接对 price 进行筛选>>> root.xpath('//price[text()>30]')[]选取 pri...
分类:
编程语言 时间:
2014-07-28 11:30:00
阅读次数:
336
之前一直用Python来写优化算法,为了增强 JS 的熟练程度,开始将原有的代码改写成 JS。采用的工具包括 node.js + Grunt + nodeunit + github + npm + travis-ci。
分类:
编程语言 时间:
2014-07-28 11:27:40
阅读次数:
247
1.for x in 集合:print(x) #输出集合内的元素2.列表:[] #1.切片操作: [:] #全部遍历 [1] #输出第二个元素 [1:3] #遍历第二个到第三个元素 [1:] #遍历第二个到最后一个元素 [:3] #遍历前三...
分类:
编程语言 时间:
2014-07-28 11:26:30
阅读次数:
244
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'importsysfromPyQt4.QtCoreimportQtfromPyQt4importQtGui,QtCore,QtfromaboutimportUi_FormclassExam...
分类:
其他好文 时间:
2014-07-28 11:23:50
阅读次数:
176
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'importsys,datetimefromPyQt4.QtCoreimportQtfromPyQt4importQtGui,QtCore,QtfromtiimportUi_Formcla...
分类:
其他好文 时间:
2014-07-28 11:18:10
阅读次数:
409
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'importsysfromPyQt4.QtCoreimportQtfromPyQt4importQtGui,QtCore,QtfromrolimportUi_FormclassExampl...
分类:
其他好文 时间:
2014-07-28 03:00:59
阅读次数:
283