很全的Python资源收集
Programming Python, 2nd Edition (O'Reilly)
http://www.osbbs.com/dl/Programming Python, 2nd Edition (O'Reilly).chm
很全很经典了python学习入门资料
OReilly - Learning Python:
http://www.osbbs.com/dl/OReilly - Learning Python.chm
OReilly - Python Cookbook.chm:
http://www.osbbs.com/dl/OReilly - Python Cookbook.chm
经典中的经典,我的最爱.
OReilly - Python Standard Library.chm
http://www.osbbs.com/dl/OReilly - Python Standard Library.chm
python标准库说明
thinking in python.chm
http://www.osbbs.com/dl/thinking in python.chm
也还不错~我看得比较投入
PythonInNutshell.zip
http://www.osbbs.com/dl/PythonInNutshell.zip
传说中的经典,不过一直没来得及看.
sockets.pdf
http://www.osbbs.com/dl/sockets.pdf
python的socket编程
diveintopython-html-5.4.zip
http://www.osbbs.com/dl/diveintopython-html-5.4.zip
《深入python》
html-2.3.4.zip
http://www.osbbs.com/dl/html-2.3.4.zip
python2.3.4的手册
LovePython.zip
http://www.osbbs.com/dl/LovePython.zip
Addison-Wesley Python Programming with the Java Class Libraries.chm
http://www.osbbs.com/dl/Addison-Wesley Python Programming with the Java Class Libraries.chm
OReilly - Python Programming on Win32.chm
http://www.osbbs.com/dl/OReilly - Python Programming on Win32.chm
python的win32编程讲解
Win32.zip
http://www.osbbs.com/dl/Win32.zip
上面一书的源码
python2.3tut.zip
http://www.osbbs.com/dl/python2.3tut.zip
O'Reilly - Python & XML.rar
http://www.osbbs.com/dl/O'Reilly - Python & XML.rar
cjkcodecs-1.0.3.zip
http://www.osbbs.com/dl/cjkcodecs-1.0.3.zip
支持东方文字
gb2312.zip
http://www.osbbs.com/dl/gb2312.zip
CANVAS3_VivianLi.rar
http://www.osbbs.com/dl/CANVAS3_VivianLi.rar
python写的安全检�
相关文档:
PLY模块 是Lex/YACCPython 的实现,可以用来实现词法分析/语法分析,但如何用,还没研究,以后有时间再研究吧;
主页: http://www.dabeaz.com/ply/
pycparser模块 是使用PLY模块分析c语言语法的模块,没什么文档,但模块自带了例子和测试用例。
主页: http://code.google.com/p/pycpa ......
前几天,小许给我一份JavaQQ的源代码,用vim打开一看,发现里面的中文都是乱码。不用说,又是可恶的编码问题,在window下的文本文件通常使用GBK或GB18030编码,而在Linux下utf-8编码则大行其道。打开——另存为肯定不是上策,上网找编码批量转换工具也不是咱勤劳勇敢的程序员的作风。自已动手 ......
python的C、c++扩展
http://blog.chinaunix.net/u3/110228/showart_2148725.html
python的强大不仅表现在其功能上,而且还表现在其扩展能力上。
使用C/C++很容易编写python的模块,扩展python的功能。
同时将性能要求比较高的代码使用C/C++编写,能更好的弥补
脚本语言执行速度慢的缺陷。
1. python的C语言扩展
1.1 ......
python中的datetime module是专门处理时间相关内容的模块,功能很强大,但是反而显得比较复杂。
一下代码是用来求从mysql中取到的timestamp和当前时间比较,求时间差的方法
import datetime
lasttime=a.get_last_timestamp(sid=40)[-1]["last_time"] #取到timestamp
delta = datetime.datetime.now()-lasttime # ......