04 2011 档案
摘要:软件开发的断点调试是必不可少,这里介绍ubuntu10.04中eclipse工具中php的调试配置。 本打算配置ZendDebugger 进行调试,配置了老长时间没配置成功,在phpinfo看不到ZendDebugger生效,经查发现是php5.3的问题,必须先卸载,本文介绍使用xdebug了。 软件安装太简单了,分别执行如下命令: sudo apt-get install apache2 sud...
阅读全文
摘要:!include <win32.mak> all = hello.exe objs = hello.obj .c.obj: $(cc) $(cflags) $(cvars) $*.c hello.exe:$(objs) $(link) $(guiflags) –out:hello.exe $(guilibs) $(objs)
阅读全文
摘要:>>>import chardet >>>chardet.detect(“e:\\a.txt”) {‘encoding’: ‘gb2312’, confidence:0.99}
阅读全文
摘要:1. import os,sys r = raw_input(“type a directory name”) for root, dirs, files in os.walk(r): for f in files: print root, os.sep, f; 2. import os,sys def walkdir(dirname): try: ls = os.listdir(dirname)...
阅读全文

浙公网安备 33010602011771号