2011年7月2日

摘要: VIM 中常用的替换模式总结。1,简单替换表达式替换命令可以在全文中用一个单词替换另一个单词::%s/four/4/g“%” 范围前缀表示在所有行中执行替换。最后的“g” 标记表示替换行中的所有匹配点。如果仅仅对当前行进行操作,那么只要去掉%即可如果你有一个象“thirtyfour” 这样的单词,... 阅读全文
posted @ 2011-07-02 18:15 xuq 阅读(180) 评论(0) 推荐(0)
摘要: http://docs.python.org/ 阅读全文
posted @ 2011-07-02 11:34 xuq 阅读(129) 评论(0) 推荐(0)
摘要: To trigger a download you need to set Content-Disposition header:from django.http importHttpResponsefrom django.core.servers.basehttp importFileWrapp... 阅读全文
posted @ 2011-07-02 11:29 xuq 阅读(126) 评论(0) 推荐(0)
摘要: 提纲为什么选用django选择JqueryFlex开发文件批量上传优化之路[any material that should appear in print but not on the slide]为什么选用django之前一直使用asp.net做些web应用,因为课题的原因,遇见了python... 阅读全文
posted @ 2011-07-02 10:00 xuq 阅读(201) 评论(0) 推荐(0)
摘要: 01.import os, tempfile, zipfile 02.from django.http import HttpResponse 03.from django.core.servers.basehttp import FileWrapper 04. 05. 06.def send_f... 阅读全文
posted @ 2011-07-02 09:52 xuq 阅读(359) 评论(0) 推荐(0)
摘要: 环境 : ubuntu能实现的包:sudo easy_install xlrd # 读取xls文件比较方便 缺点:不支持2007sudo easy_install pyExcelerator # 写入比较方便pywin32 # 功能强大 缺点:不垮平台 需要windows环境一个简单的例子:# -... 阅读全文
posted @ 2011-07-02 09:46 xuq 阅读(866) 评论(0) 推荐(0)

导航