ChinaUnix.net
相关文章推荐:

python pp 分析

大家好,我刚刚学习python,目前在一家公司实习,公司分给我的任务是:用python分析一个网站,并取出有用信息(有点像网络爬虫),最好不用正则表达式,要求所做的程序要对网站具有一定的适应性和交互性,我尝试着做了几天,但没有头绪,还请各位大侠帮忙。

by danniandegudan - Python - 2008-01-22 16:58:31 阅读(4513) 回复(4)

相关讨论

python2exe工作原理 python2exe使用python的modualfinder来调入要运行的scripts并且寻找运行它所需要的所有python模块和扩展模块。纯python的模块在临时目录里被编译成.pyc(debug)和.pyo(optimized)的文件。编译后的扩展模块pyd文件也能找到。 最后生成一个与zip兼容的包,包含一个dependency目录和script,这个包最后提供给一个py2exe自带的python解释器。运行生成的程序,将建立一个重要的关联,这样在script开始运行的时候...

by linxh - Python文档中心 - 2006-10-22 08:24:47 阅读(1233) 回复(0)

def listDirectory(directory, fileExtList): "get list of file info objects for files of particular extensions" fileList = [os.path.normcase(f) for f in os.listdir(directory)] fileList = [os.path.join(directory, f) for f in fileList if os.path.splitext(f)[1] in fileExtList] 这里面,os.p...

by CUDev - Python文档中心 - 2006-07-19 19:04:09 阅读(1299) 回复(0)

SAP MM/pp Analyst(SAP MM/pp 系统分析师) Location: Shenzhen FuTian * BSC in Computer Science, good English communication skills * SAP MM/pp certification, qualified accountant, good communication skill is required * SAP MMpp support, maintenance and configuration experience * Minimum of 3 years experience of supporting, configuring and maintaining SAP MM & pp modules * Experience of configuration ...

by miaomiaoga - 猎头招聘 - 2004-11-02 20:06:45 阅读(853) 回复(2)
by prolj - Python - 2009-06-26 19:25:45 阅读(2793) 回复(12)

今天工作又遇到了问题,简单说一下:是汉化Flash项目(程序文件扩展名as),部门的策划新手从老外那里发过来的策划案中的数据集文档析出中英文列表词元不完整,这是在调试程序时发现的。 我想起在源码中的字元定义很有规律可循,即都写成这种形式: [color="#008080"]stype5Verb2.push("nap"); 所以我可以使用python正则来取出这种写法中的单词字元 这是所写程序,其生成所需字元清单,去除可能的重复字元并排序: [color="#...

by wibrst - Python文档中心 - 2007-01-09 19:37:54 阅读(1182) 回复(0)

这是上周四没发成功的帖子。 现在工作的东西需要把策划文档中的Excel内容按列形成数组。考虑到有几个像这样的独立部分,并且以后修改的可能性也很大,正好可以用python来方便地完成这个任务。 举个例子,比如:原来的文件是从Excel拷贝出来存为 parseWordGroup.txt,内容: 鹅 毛 河 南 方 鸡 江 南 人 青 草 鹅 青 色 方 红 花 子 花 草 色 则会生成result.txt: c1Array = ["鹅","南","江","青","青","红","花"] c2Array ...

by wibrst - Python文档中心 - 2006-12-25 10:02:35 阅读(1317) 回复(0)

上周五完成了這個log分析 ###################################### #  數據文件的格式如下: #Software: Microsoft(R) Internet Security and Acceleration Server 2000 #Version: 1.0 #Date: 2005-10-13 00:00:05 #Fields: c-ip    cs-username    c-agent    sc-authenticated    date    time    s-svcname    ...

by wantfly - Python文档中心 - 2005-11-01 15:20:33 阅读(2630) 回复(0)

http://blog.csdn.net/rstevens/category/13738.aspx/rss http://mail.dprk-stamp.com/openidea/forums.cgi?forum=5 小马哥写的BitTorrent分析

by rhinux - Python - 2008-10-22 00:54:19 阅读(26290) 回复(14)

使用多个cpu。 需要分片? 代码: import math, sys import pp def isprime(n): """Returns True if n is prime and False otherwise""" if not isinstance(n, int): raise TypeError("argument passed to is_prime is not of 'int' type") if n 2: return False if n == 2: return True max = int(math.ceil(math.sqrt(n))) i = 2 while i = max: if n % i...

by blackjimmy - Python文档中心 - 2009-05-25 20:58:24 阅读(1889) 回复(0)