Life is short, you need Python

10 2010 档案

摘要:[代码] 阅读全文
posted @ 2010-10-25 09:52 runfox545 阅读(365) 评论(0) 推荐(0) 编辑
摘要:猜测一个随机数[代码][代码] 阅读全文
posted @ 2010-10-22 14:14 runfox545 阅读(1163) 评论(0) 推荐(0) 编辑
摘要:下面将开发环境的安装配置过程写下来,供后来者参考。 一、安装Eclipse SDK。 到 http://download.eclipse.org/eclipse/downloads/ 找SDK最新的Release版本,最新的版本是 3.3.2 下载。一开始我选择的是台湾的[Taiwan] National Center for High-Performance Computing (http) ,... 阅读全文
posted @ 2010-10-21 10:19 runfox545 阅读(2810) 评论(0) 推荐(0) 编辑
摘要:异常通常直接或间接的从Exception类派生[代码]the result:[代码] 阅读全文
posted @ 2010-10-20 10:03 runfox545 阅读(181) 评论(0) 推荐(0) 编辑
摘要:by raise statement, for example:[代码]Get the result as blow: 阅读全文
posted @ 2010-10-19 17:27 runfox545 阅读(211) 评论(0) 推荐(0) 编辑
摘要:1. Update the config file: my.iniC:\Program Files\MySQL\MySQL Server 5.1\my.iniAdd the following lines[代码]2. restart mysql service 阅读全文
posted @ 2010-10-19 16:59 runfox545 阅读(165) 评论(0) 推荐(0) 编辑
摘要:1. Preparationdownload install package from Offical site:http://www.py2exe.org/Pay attention to download the right package with your OS(32 or 64bit etc.)2. Setup.py[代码]3. ClearSVN.py[代码]4. supposed th... 阅读全文
posted @ 2010-10-19 16:21 runfox545 阅读(357) 评论(0) 推荐(0) 编辑
摘要:http://www.ibm.com/developerworks/cn/linux/l-pyunit/Widget.py[代码]auto.py[代码] 阅读全文
posted @ 2010-10-18 16:52 runfox545 阅读(241) 评论(0) 推荐(0) 编辑
摘要:150首现代最流行的歌曲连放——每首都令人心折 阅读全文
posted @ 2010-10-08 14:56 runfox545 阅读(1709) 评论(0) 推荐(0) 编辑
摘要:>>> import sys >>> dir(sys) ['__displayhook__', '__doc__', '__excepthook__', '__name__', '__stderr__', '__st din__', '__stdout__', '_current_frames', '_getframe', 'api_version', 'argv', 'bu 阅读全文
posted @ 2010-10-08 14:09 runfox545 阅读(593) 评论(0) 推荐(0) 编辑
摘要:1. 当前目录2. 环境变量PYTHONPATH中的目录3. Python安装目录(for Linux OS:/usr/local/lib/pythonWhen a module named spam is imported, the interpreter search for a file named spam.py in the current directoryand then in li... 阅读全文
posted @ 2010-10-08 13:44 runfox545 阅读(1994) 评论(0) 推荐(0) 编辑
摘要:十一长假,回了趟老家,高速一直通到丁埠,从南京3个多小时就到了,但是丁埠到我家那段10公里的路程真是噩梦,为什么不好好维护呢!哎!要想富先修路,至理名言啊!十月4日,登上了久闻大名的天堂寨,瀑布很漂亮,山很高,大家伙都累坏了,现在腿还有些痛!看来缺少锻炼啊!贴上美图以示纪念 阅读全文
posted @ 2010-10-08 11:17 runfox545 阅读(165) 评论(0) 推荐(0) 编辑

白月黑羽 Python教程 白月黑羽Python
点击右上角即可分享
微信分享提示