上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 36 下一页
摘要: python 利用 setup.py 手动安装第三方类库由于我在mac使用时,装了python3,默认有python2的环境,使用 pip 安装第三方类库时,老是安装到 python2的环境上;在想办法安装到python3上时,费了不少力气;在家里的windows电脑上安装了python3,在使用p... 阅读全文
posted @ 2014-04-22 22:01 cocoajin 阅读(19437) 评论(0) 推荐(1) 编辑
摘要: python 网络请求类库 requests 使用requests是 为python封装的强大 REST 操作类库githubhttps://github.com/kennethreitz/requests官网python-requests.org1: 安装,请使用 pip,或是 easy_inst... 阅读全文
posted @ 2014-04-22 14:55 cocoajin 阅读(1855) 评论(0) 推荐(0) 编辑
摘要: 应用场景默认mac上已经安装了 python2; 而我又安装了 python3,并使用 python3;安装了 pip 默认,pip安装的包安装在了 python2上了;但是我想用 pip把安装的包安装在 python3上 ,所以如下解决方式;1:在mac上先安装virtualenv 终端:sudo... 阅读全文
posted @ 2014-04-22 11:48 cocoajin 阅读(8374) 评论(0) 推荐(0) 编辑
摘要: python3 urllib.request 网络请求操作基本的网络请求示例'''Created on 2014年4月22日@author: dev.keke@gmail.com'''import urllib.request#请求百度网页resu = urllib.request.urlopen(... 阅读全文
posted @ 2014-04-22 09:48 cocoajin 阅读(44460) 评论(0) 推荐(1) 编辑
摘要: python3 http.client 网络请求一:get 请求'''Created on 2014年4月21日@author: dev.keke@gmail.com'''import http.client#简单的GET请求con = http.client.HTTPConnection('www... 阅读全文
posted @ 2014-04-21 22:34 cocoajin 阅读(15027) 评论(0) 推荐(0) 编辑
摘要: python import 错误 TypeError: 'module' object is not callable在这里,有 Person.py test.py; 在 test.py 里面 import Person 总是调用方法出错Person.pyclass Person: def _... 阅读全文
posted @ 2014-04-21 21:40 cocoajin 阅读(2374) 评论(0) 推荐(0) 编辑
摘要: 以下是 mac 下 Eclipse Kepper的设置一:设置中文编码 1:打开Eclipse--Preference-->general--->editor---->Spelling 下面的 编码改为 utf-8; 默认是 US_ASCII2: 同样是 Preference 配置页面-->Gen... 阅读全文
posted @ 2014-04-21 15:45 cocoajin 阅读(1478) 评论(0) 推荐(0) 编辑
摘要: 初识 NoSQL Databases RethinkDBrethinkDB所有数据都是基于 json的Document; 官网:http://rethinkdb.com/ github:https://github.com/rethinkdb/rethinkdb一:mac os 安装 rethi... 阅读全文
posted @ 2014-04-21 14:09 cocoajin 阅读(1545) 评论(0) 推荐(0) 编辑
摘要: Python 面向对象编程 继承 和多态一:多继承性 对于java我们熟悉的是一个类只能继承一个父类;但是对于C++ 一个子类可以有多个父亲,同样对于 Python一个类也可以有多个父亲 格式: class 子类(父类1,父类2...): 如代码:我们创建 人类,课程类,学生类继承人类,大学生... 阅读全文
posted @ 2014-04-18 21:17 cocoajin 阅读(731) 评论(0) 推荐(0) 编辑
摘要: Eclipse Kepler SR2 + Python 3.4 + JDK7+Pydev3.4 搭建 python 开发环境(MAC)此为mac开发环境一:下载所需软件:Eclipse Kepler SR2https://www.eclipse.org/downloads/Python3.4http... 阅读全文
posted @ 2014-04-18 14:51 cocoajin 阅读(1113) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 36 下一页