摘要: 去空格及特殊符号s.strip().lstrip().rstrip(',')复制字符串#strcpy(sStr1,sStr2)sStr1 = 'strcpy'sStr2 = sStr1sStr1 = 'strcpy2'print sStr2连接字符串#strcat(sStr1,sStr2)sStr1... 阅读全文
posted @ 2015-12-29 18:20 zl306222525 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 原博文地址:http://www.cnblogs.com/windinsky/archive/2012/09/20/2695520.html这段时间在做python,觉得这个配置环境的帖子还不错,分享一下。1、首先访问http://www.python.org/download/去下载最新的pyth... 阅读全文
posted @ 2015-12-29 13:02 zl306222525 阅读(197) 评论(0) 推荐(0) 编辑
摘要: requests是python的一个HTTP客户端库,跟urllib,urllib2类似,那为什么要用requests而不用urllib2呢?官方文档中是这样说明的:python的标准库urllib2提供了大部分需要的HTTP功能,但是API太逆天了,一个简单的功能就需要一大堆代码。我也看了下req... 阅读全文
posted @ 2015-12-29 12:57 zl306222525 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.cnblogs.com/fnng/p/4115607.html作者:虫师今天想在在win7 64位环境下使用python 操作mysql在安装MySQL-python 时报错:_mysql.c_mysql.c(42) : fatal error C1083: Cann... 阅读全文
posted @ 2015-12-29 12:55 zl306222525 阅读(536) 评论(0) 推荐(0) 编辑