python
文章平均质量分 81
yooodooo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python dict
初始化 构造方法创建 d = dict() d = dict(name="nico", age=23) d = dict((['name', "nico"], ['age', 23])) 当然还有更方便,简单的 d = {} d = {"name":"nico", "age":23} 遍历 通过对key的遍历,遍历整个dict d = {"nam.原创 2012-02-01 22:55:23 · 251 阅读 · 0 评论 -
python 可变参数 *args, **kwds
以前在用到mechanize和调用win32接口时遇到大量签名为*args, **kwds的方法,如: mechanize的模块_form.py中有如下代码: def ParseString(text, base_uri, *args, **kwds): fh = StringIO(text) return ParseFileEx(fh, base_uri, *args, ...原创 2012-02-03 22:18:51 · 991 阅读 · 0 评论 -
python 操作excel之pyExcelerator
pyExcelerator 写道 pyExcelerator is a library for generating Excel 97/2000/XP/2003 and OpenOffice Calc compatible spreadsheets. pyExcelerator has full-blown support for UNICODE in Excel and Calc spre...原创 2012-02-07 22:16:17 · 1104 阅读 · 0 评论 -
mongodb install
以下是安装的一些记录 安装Mongodb 1、安装 wget http://fastdl.mongodb.org/linux/mongodb-linux-i686-2.0.3.tgz mv mongodb-linux-i686-2.0.3.tgz /usr/local/ tar xvf mongodb-linux-i686-2.0.3.tgz mv mongodb-l...原创 2012-03-05 17:16:28 · 115 阅读 · 0 评论 -
mongodb 1: 把玩把玩
这里对mongodb做一些初步认识 当然首先得启动服务和mongo shell /usr/local/mongodb/bin/mongod --dbpath /home/yangdong/data/db /usr/local/mongodb/bin/mongo 1、实例一个数据库 >use sample #sample不存在会创建一个 >db ...原创 2012-03-05 17:31:46 · 121 阅读 · 0 评论
分享