- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 python安装第三方库超时报错“Read time out”的解决办法
Question: python安装第三方库超时报错—–Read time outAnswer: ①使用国内镜像安装 ②设置超时时间第一种方法: pipy 国内镜像目前有: http://pypi.douban.com/ 豆瓣 http://pypi.hustunique.com/ 华中理工大学 http://pypi.sdutlinux.org/ 山东理工大学 ht
2017-05-12 18:42:01
20111
原创 python学习笔记之正则表达式
正则表达式的好处:简洁表达,一行就是特征,是一种通用的字符串表达框架正则表达式最主要应用在字符串匹配中。正则表达式的使用:将符合正则表达式语法的字符串转换成正则表达式特征。语法由字符和操作符构成。经典表达式实例: 考虑:要如何输出这些表达式实例?匹配IP地址的正则表达式: IP地址字符串形式的正则表达式: \d+.\d+.\d+.\d+ 或\d{1,3}.\d{1,3}.\d{1,3}.\d{
2017-04-28 01:08:20
339
原创 Python安装scrapy库过程中出现“ Failed building wheel for xxx”的解决办法
1.出现“ Failed building wheel for xxx”的解决办法: 进入下方网站,下载相对应的whl文件: 点击即可进入 例如,出现“ Failed building wheel for Twisted”则下载相应python版本的Twisted文件。 笔者用的是Python3.6版本,则找到Twisted-17.1.0-cp36-cp36m-win_amd64.whl文件
2017-04-11 02:22:49
33890
6
原创 python2.7关于ascii' codec can't encode characters in position 1-4: ordinal not in range(128)的报错解决方法
作者在mooc上学习python爬虫的时候,运行university ranking.py时,遇到如下报错:ascii’ codec can’t encode characters in position 1-4: ordinal not in range(128)。 经过搜索引擎查询,成功运用其提供的方法解决上述error。 解决方法如下: 1.打开读者python的安装目录,进入Lib目录
2017-04-06 21:33:03
3953
原创 Python学习笔记之基础知识
本文部分参考了“小甲鱼的python教程”、《python基础教程(第二版)》,在此表示感谢。侵删。1.输入&输出 输出:print"hello world"hello worldprint 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6print"Is it true that 3 + 2 < 5 - 7?"print 3 + 2 < 5 - 77Is it true
2017-03-30 17:14:21
427
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人