码迷,mamicode.com
首页 >  
搜索关键字:python 正则表达式 单词统计    ( 148557个结果
爬虫--用cookie访问任意网页
#!/usr/bin/env python# -*- coding: utf-8 -*-############################################## File : requestAnyURLWithCookie.py# Author : luc...
分类:Web程序   时间:2014-06-15 00:33:30    阅读次数:187
python getattr()
About getattrPython’s getattr function is used to fetch an attribute from an object, using a string object instead of an identifier to identify the at...
分类:编程语言   时间:2014-06-15 00:26:18    阅读次数:487
爬虫--登录网页
#!/usr/bin/env python# -*- coding: utf-8 -*-############################################## File : loginMMVOIP.py# Author : lucasysfeng# Re...
分类:Web程序   时间:2014-06-15 00:18:13    阅读次数:245
正则表达式基本概念及在java中的使用
正则表达式,我是从why,what,how开始探索的。。。 why:正则表达式用“俗语”解释是什么意思?“历史”上发生了什么事情,让正则表达式诞生了? what:正则表达式具体内容是什么?包含什么定义?这些定义分别用来做什么? how:我在用java,那么正则表达式和java又是怎么联系起...
分类:编程语言   时间:2014-06-14 23:45:25    阅读次数:380
ruby 正则表达式Regexp
http://ruby-doc.org/core-2.1.2/Regexp.htmlRegexpARegexpholds a regular expression, used to match a pattern against strings. Regexps are created using ...
分类:其他好文   时间:2014-06-14 21:17:33    阅读次数:304
python的mp3play库试用
没有见过比这个更小型的库了,下面程序实现的功能:播放音乐,按空格键实现暂停和播放的切换。#coding=utf-8import mp3playimport pythoncom, pyHookinput = 0pauseFlag=1def onKeyboardEvent(event): glob...
分类:编程语言   时间:2014-06-14 20:09:54    阅读次数:366
ArcGIS10中matplotlib画图时的中文设置
利用GIS的数据批量生成XY的图形图像文件,可以直接使用Python。一般大家都是用matplotlib,中文设置的问题参看了许多内容,结论是对错不一,让我折腾了三天,现总结如下:1.软件的版本。安装测试的为numpy-1.6.1和matplotlib-1.1.0,WindowsXP系统。我原来系统...
分类:其他好文   时间:2014-06-14 19:15:22    阅读次数:471
python 实现计算数独
输入文件格式:008309100900060004007504800036000540001000600042000970005907300600010008004608200输出结果:yuan********************0 0 8 3 0 9 1 0 0 9 0 0 0 6 0 0 0...
分类:编程语言   时间:2014-06-14 19:02:06    阅读次数:226
Model Builder中Table2Table中字段映射的问题
ArcGIS10中使用过程中,Bug不少。尽管有了SP3,但模型耦合的深层次的应用中还是错误不少。目前只是遇到一个,利用躲避的方法解决一个。例如,从NetCDF中抽出的数据表,必须在内存和数据库中都存在的条件下,Python程序才能运行成功,花了许多时间才得出这样的躲避方法。如下图的抽取计算数据为例...
分类:其他好文   时间:2014-06-14 18:46:47    阅读次数:177
python初始化父类错误
源码如下:#!/usr/bin/env pythonclass Bird(): def __init__(self): self.hungry = True def eat(self): if self.hung...
分类:编程语言   时间:2014-06-14 18:23:05    阅读次数:242
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!