2012年8月13日
摘要: 转自:PHP书写规范 PHP Coding StandardPHP书写规范 作者:sink <sink.cup@gmail.com> 最后修改:2011-7-13 参考资料: PHP Manual http://www.php.net/manual/zh/language.oop5.basic.php PEAR Coding Standards http://pear.php.net/manual/en/standards.php C++ Coding Standard http://www.possibility.com/Cpp/CppCodingStandard.html Go 阅读全文
posted @ 2012-08-13 17:09 风在竹林 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 转自:这个星期开始学习Python了,因为看的书都是基于 Python2.x,而且我安装的是Python3.1,所以书上写的地方好多都不适用于Python3.1,特意在Google上search了一下 3.x和2.x的区别。特此在自己的空间中记录一下,以备以后查找方便,也可以分享给想学习Python的friends. 1.性能 Py3.0运行 pystone benchmark的速度比Py2.5慢30%。Guido认为Py3.0有极大的优化空间,在字符串和整形操作上可 以取得很好的优化结果。 Py3.1性能比Py2.5慢15%,还有很大的提升空间。 2.编码... 阅读全文
posted @ 2012-08-13 14:29 风在竹林 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 转自:Python编辑器IDLE傻瓜入门 下载python进行安装,默认自带此工具开始->程序->Python 2.*/3.*-> IDLE (Python GUI)如此就打开了Python Shell->File->New window(Ctrl+N)就出现了python编辑器编写代码比如 print('Hello World') 然后保存文件为helloworld.py(注意记得加py扩展名,默认是不会自动加添的)。在编辑器窗口按F5即可在Python Shell中看到结果。如何debug1.设置断点:在Python编辑器中要调试的代码行右击- 阅读全文
posted @ 2012-08-13 13:56 风在竹林 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 转自:A List of Coding Standard Websites注:已将Google的编程规范(google-styleguide)整理进相应的列表。Do you adhere to a certain coding style or standard when programming in your language of choice? If you are not following an official coding standard or a standard set-forth by your place of employment – perhaps you s... 阅读全文
posted @ 2012-08-13 13:55 风在竹林 阅读(208) 评论(0) 推荐(0) 编辑