yyyyyyyyyyyyyyyyyyyy

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 281 282 283 284 285 286 287 288 289 ··· 367 下一页

2015年8月5日 #

摘要: 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 阅读(266) 评论(0) 推荐(0)

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

2015年8月4日 #

摘要: BeautifulSoup 安装使用下载:http://www.crummy.com/software/BeautifulSoup/bs4/download/4.2/解压:tar -xzvfbeautifulsoup4-4.2.0.tar.gz安装:进入解压后的目录python setup.py b... 阅读全文
posted @ 2015-08-04 21:48 xxxxxxxx1x2xxxxxxx 阅读(174) 评论(0) 推荐(0)

2015年8月3日 #

摘要: MediaWiki简易安装教程**关于mediawiki 一些好的资料: http://codex.wordpress.org.cn/Mediawiki%E5%BB%BA%E7%AB%99%E7%BB%BC%E8%BF%B0 http://www.ziyuan8.com/Article/IT/200... 阅读全文
posted @ 2015-08-03 02:40 xxxxxxxx1x2xxxxxxx 阅读(559) 评论(0) 推荐(0)

摘要: phpMyVisites是一个网站流量统计系统,它能够提供非常详细的统计报告和高级图形报表。phpMyVisites不是一个Apache log分析工具,它建有自己的log。它的特点包括:安装部署:提供可视化的安装向导,并且使用简单只要把一段简单的Javascript代码添加到你网站的页面中就能够马... 阅读全文
posted @ 2015-08-03 02:38 xxxxxxxx1x2xxxxxxx 阅读(695) 评论(0) 推荐(0)

摘要: http://www.webalizer.org/ 配置Webalizer我们可以通过命令行配置Webalizer,也可以通过配置文件进行配置。下面将重点介绍使用配置文件进行配置,该方法使用形式比较直观,使用比较普遍。Webalizer的配置文件的路径是"/etc/webalizer/webaliz... 阅读全文
posted @ 2015-08-03 02:38 xxxxxxxx1x2xxxxxxx 阅读(359) 评论(0) 推荐(0)

摘要: mysql的root密码忘记解决方 mysql的root密码忘记解决方 mysql的root密码忘记解决方 mysql的root密码忘记解决方 没关注第一步,直接从第二步开始,(可以参看上一篇,先停止mysql服务)。然后从第二步开始。 我启动mysql用的命令是/etc/init.d/mysql 阅读全文
posted @ 2015-08-03 02:36 xxxxxxxx1x2xxxxxxx 阅读(173) 评论(0) 推荐(0)

上一页 1 ··· 281 282 283 284 285 286 287 288 289 ··· 367 下一页