yyyyyyyyyyyyyyyyyyyy

博客园 首页 新随笔 联系 订阅 管理

2015年8月5日 #

摘要: CMake是一个跨平台的程序构建工具,比如起自己编写Makefile方便很多。 介绍:http://baike.baidu.com/view/1126160.htm 本文件不介绍CMake的基本语法,下面是篇不错的入门教程: http://www.ibm.com/developerworks/cn/ 阅读全文
posted @ 2015-08-05 03:29 xxxxxxxx1x2xxxxxxx 阅读(326) 评论(0) 推荐(0)

摘要: 1. 首先确认python的版本为2.3.4以上,如果不是需要升级python的版本 python -V 检查python版本2. 安装mysql, 比如安装在/usr/local/mysql目录下3. 下载 MySQL-python-1.2.2.tar.gz 地址 http://sourcefor... 阅读全文
posted @ 2015-08-05 02:51 xxxxxxxx1x2xxxxxxx 阅读(264) 评论(0) 推荐(0)

摘要: 先看下else的使用:try: ...exception: ...else: ...只有在try中没有发生任何异常,所有代码完全成功的情况下才会转入else再看下finally:finally是无论是否捕捉到异常都会执行的一句,finally 可以单独和try搭配,也可以和exce... 阅读全文
posted @ 2015-08-05 02:38 xxxxxxxx1x2xxxxxxx 阅读(1564) 评论(0) 推荐(0)

摘要: 这两个基本上都是在循环的时候用。for i in range(0, 100):print i for i in xrange(0, 100):print i这两个输出的结果都是一样的,实际上有很多不同,range会直接生成一个list对象:a = range(0,100)print type(a)p... 阅读全文
posted @ 2015-08-05 01:03 xxxxxxxx1x2xxxxxxx 阅读(245) 评论(0) 推荐(0)

摘要: $ python thread.py starting at: 2015-08-05 00:24:24Traceback (most recent call last): File "thread.py", line 28, in main() File "thread.py", line 16,... 阅读全文
posted @ 2015-08-05 00:26 xxxxxxxx1x2xxxxxxx 阅读(645) 评论(0) 推荐(0)

摘要: 开发部需要使用python2.7,由于公网的环境python版本都是系统自带的,版本是2.6,需要升级,最好是通过RPM升级。Linux系统:CentOSCentOS 6.4升级Python后yum不可用的解决方案 http://www.linuxidc.com/Linux/2013-05/8472... 阅读全文
posted @ 2015-08-05 00:15 xxxxxxxx1x2xxxxxxx 阅读(183) 评论(0) 推荐(0)