Python的一些小技巧小知识
2008-09-11 18:05Python的一些小技巧小知识. ... [阅读全文]
用Python实现页面内容抓取
2008-09-11 17:091.取得奖牌榜页面内容, 2.使用HTMLParser 分析页面, 3.把分析结果,做成RSS发布4.解析RSS,作页面展示。 ... [阅读全文]
博客园仿真足球竞赛平台Python版SDK
2008-09-11 16:48摘要: 为了方便喜欢Python的同学能使用Python开发自己的球队,所以编写了此SDK。这个SDK基本上是参照C#版SDK改过来的,除了一些复杂的几何算法没有实现外,其他功能都已实现。喜欢的朋友可以自己下了慢慢改善,我也会不断更新这个SDK。 阅读全文 … ... [阅读全文]
GNU Emacs 'python.el'代码执行漏洞
2008-09-11 14:28GNU Emacs ‘python.el’代码执行漏洞. ... [阅读全文]
从脚本编写到面向对象的Python 编程
2008-09-11 14:23从编写过程式脚本转换到面向对象的编程通常是非常困难的。本文探索如何重用来自PHP、Bash 或Python 脚本的程序,转换到Python 中的面向对象的编程。本文还将简略地谈到函数式编程的适当使用。 转自:developerWorks 中国> AIX and UNIX | Linux. ... [阅读全文]
A Threading Model Overview
2008-09-11 12:12I noticed in a story on Hacker News that many people do not understand that differences in threading implementations between different programming languages. In the single processor days, understanding the threading model that you were working with was not that important. With more than one core, i... [阅读全文]
python中的函数编程
2008-09-11 11:59摘要: 阅读全文 [新闻]Firefox Chrome界面扩展包放出. ... [阅读全文]
[Python] wxpython in action里images库不存在的问题
2008-09-11 11:49作者: a511125 发表于: 2008-09-11 11:33:02 (GMT 简介:小弟最近在学wxPython in action,其中有几个例子里无法运行,比如import images,提示我模块不存在。我的Python是2.5版的,是不是这个版本已经没有这个模块的,如果是,那改成什么了。 … ... [阅读全文]
传AMD将推出廉价Athlon对抗英特尔Atom
2008-09-11 08:42双核AMDAthlon芯片将用于下一代笔记本电脑。同时,45纳米四核Phenom处理器推迟到明年发布。 最近,互联网上有大量的传言称,AMD将在9月份推出降价的Athlon芯片,与英特尔的Atom处理器展开竞争。 综合几个消息来源的报道,AMD似乎将推出新的“Propus”品牌的 … ... [阅读全文]
用python分割并提取gif动画帧
2008-09-10 22:48这样就好办了,以下是python的一段代码: giffile=open(’c:/22.gif’,'rb’) f_sp=’,'+chr(00)+chr(00)+chr(00)+chr(00) #each frame split by ‘, ‘ this is use binary system f_cl=chr(59) #gif close by ‘;’ this is use binary system … ... [阅读全文]
Python: Another way to pass parameters to functions
2008-09-10 20:02So the basic idea is that you can pass all parameters using lists or tuples and the * operator. I found this quite usefull when you have to call some function with some other parameters (which you don’t know before hand). And instead of dealing with getattr and counting the number of parameters and... [阅读全文]
Why your Python main program should be importable
2008-09-10 16:36When I first started coding in Python, I didn’t know what I was doing. So I structured my Python programs the way I would write Bourne shell scripts or Perl programs, writing functions as necessary and useful but otherwise putting all of the logic and code in the program’s file outside ... [阅读全文]
python 数据结构
2008-09-10 15:12一. 深入链表. 先来介绍一些链表具备的一些常用方法:. append(x) : 把一个元素添加到链表的结尾. extend(L) : 将另外一个链表合并到该链表中. insert(i,x) : 插入一个元素到指定位置的前面. remove(x) : 删除链表中第一个值为x的元素如果没有这样的元素 … ... [阅读全文]
c++调用Python初次尝试之hellowrold
2008-09-10 13:51把%Python%libs配置到你的工程项目的 Project Settings——Link ——Category——Input——Additionallibrary path 此时,如果你VC++的Build是Release版的则没什么需要配置的了 如果是DeBug版本,则会出现一个问题:cannot open file”python25_d.lib” … ... [阅读全文]
可爱的Python:JPython 和Python for .NET 内幕选择自Pythonfan 的Blog
2008-09-10 12:56可爱的Python:JPython 和Python for .NET 内幕选择自Pythonfan 的Blog. ... [阅读全文]
python 控制结构
2008-09-10 10:57python是一个依靠tab制表符和换行符来进行流程控制的编程语言,所以必须注意它的空白字符在代码中的作用。 一. 条件选择语句. 1. if 语句. Code if x < y: print “x y” … ... [阅读全文]
python整理十二——随机产生大量md5
2008-09-10 10:20有时候为了测试,需要大量的md5,写个函数来生成:. import string, random; look_set = string.ascii_letters + string.digits; md5_len = 32; tmp_md5_ls = ... [阅读全文]
MySQL创始人已向Sun提交辞呈
2008-09-10 08:45据国外媒体报道,知情人士透露,MySQL创始人迈克尔·维德纽斯(Michael Widenius)昨日已向Sun递交了辞呈。 维德纽斯是开源数据库软件MySQL核心开发人员。今年1月,Sun宣布以10亿美元收购MySQL。维德纽斯辞职后,MySQL另一名重要开发人员布莱恩·阿克尔(Brian … ... [阅读全文]
[Python] 简明python PDF版里的一个小瑕疵
2008-09-10 08:13作者: David50814 发表于: 2008-09-10 02:19:32 (GMT 简介:就是里面有一句help (’print’) 里面的引号没有[[i] 本帖最后由David50814 于2008-9-10 02:22 编辑[/i]] ... [阅读全文]
当当网购书:Python核心编程(第二版)
2008-09-10 04:39初学Python?这是一本有关Pyttlon开发的权威指南涵盖近期发布的Pyttlon版本的核心功能特性,而不仅仅是语法学习更多的高阶内容,如正则表达式、网络、多线程、图形用户界面、Web/CGl和Python扩展等。当当网购书包括几个全新的章节,关于数据库、网络客户 … ... [阅读全文]
最新评论