欢迎加入Python爱好者QQ群(Pythoner):103441184

日期:11-08-13 |  分类:Python |  标签: |  0 Comments

错误提示如下图所示: 网上查了一下,说是因为python版本问题而导致。 使用如下方法解决问题: [root@localhost ~]# which yum /usr/bin/yum [root@localhost ~]# vi /usr/bin/yum 将 #!/usr/bin/python 改为: #!/usr/bin/python2.4 参考: http://www.cxyba

阅读剩余部分...

日期:11-08-13 |  分类:Django |  标签: |  0 Comments

1) Find following path. /usr/sbin/apxs (if not exists, instll httpd-devel firstly) /usr/local/bin/python2.5 (maybe your is different) 2) Download modpython from http://archive.apache.org/dist/httpd/modpython/, then compile it. e.g. wget ht

阅读剩余部分...

日期:11-08-03 |  分类:实用工具 |  标签: |  0 Comments

网络神鸭这名字是我译的(总感觉叫网络鸭子不太好...) 这个神鸭可以管理多种云存储(Google Storage, Amazon S3, Google Docs等),还可以作为FTP, SFTP客户端。 http://cyberduck.ch/ 如何查看S3的Access Key ID 和 Secret Access Key? Account - Securit

阅读剩余部分...

日期:11-08-02 |  分类:Webscraping |  标签: |  0 Comments

我想到了两种方案: 1)从whois查询网站上抓取,例如http://whois.chinaz.com。 2)从whois命令行查询工具的结果中获

阅读剩余部分...

日期:11-07-19 |  分类:Python |  标签: |  0 Comments

os.chdir(os.path.dirname(__file__))

阅读剩余部分...

日期:11-07-17 |  分类:Python |  标签: |  0 Comments

问题: 在64位Win7下安装PIL库,提示注册表中找不到Python2.7(肯定是有的)。 原因: PIL官方 http://www.pythonware.com/products/pil/ 提供的PIL二进制安装库都是32位的。 64位程序和32位程序检测注册表的位置是不一样的: 64-bit: HKLM|HKCU\SOFTWARE\ 3

阅读剩余部分...

日期:11-07-17 |  分类:Python |  标签: |  0 Comments

From http://www.codegood.com/downloads MySQL-python for Windows Distributions MySQL-python-1.2.2.win-amd64-py2.5.rar 862.5 KiB - May 2, 2009 MySQLdb 1.2.2 for Windows and Python 2.5 64 bit MySQL-python-1.2.2.win-amd64-py2.6.exe 1.0 MiB - M

阅读剩余部分...

日期:11-07-16 |  分类:Python |  标签:pythonrandom |  0 Comments

原文地址: http://edu.codepub.com/2010/1025/26632.php 随机整数: import random random.randint(0,99) 21 随机选取0到100间的偶数: import random random.randrange(0, 101, 2) 42 随机浮点数: import random random.random() 0.85415370477785668 ran

阅读剩余部分...

日期:11-07-11 |  分类:Webscraping |  标签: |  0 Comments

说明:同事Jamp写的,挺不错的。 原文地址: http://www.site-digger.com/html/articles/20110709/15.html 最近有客户咨询能否抓取爱帮网(http://www.aibang.com/)上的数据,主要是因为爱帮网的电话号码是经过加密处理的,常规的方法获取不到真实的电话号

阅读剩余部分...

日期:11-07-06 |  分类:Linux |  标签: |  0 Comments

原文地址: http://cqh1000.blog.163.com/blog/static/46245562011314112228759/ 使用date -s命令来修改系统时间。 比如将系统时间设定成1996年6月10日的命令如下。 #date -s 06/10/96 将系统时间设定成下午1点12分0秒的命令如下。 #date -s 13:12:00 ----

阅读剩余部分...

日期:11-07-02 |  分类:其它 |  标签: |  0 Comments

支持多语种的网站通常是通过HTTP请求头的Accept-Language字段值来判断客户端本地语言的。 中文版火狐Accept-Language默认值为:zh-cn,zh, 如何修改该值? 1)火狐地址栏输入:about:config,回车。 2)过滤器,搜索accept,可以看到intl.accept_languages,

阅读剩余部分...

日期:11-06-13 |  分类:Linux |  标签: |  0 Comments

Linux中cp直接覆盖不提示的方法

阅读剩余部分...

redice's Blog  is powered by DedeCms |  Theme by Monkeii.Lee |  网站地图 |  本服务器由西安鲲之鹏网络信息技术有限公司友情提供

返回顶部