![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
wxliu1989
这个作者很懒,什么都没留下…
展开
-
python 学习笔记
简明python教程网址:http://sebug.net/paper/pythonhelp(sys)help(int)help(list)help(dict)help(str)help(file)sys模块print sys.__doc__help(sys.exit)help(sys.stdin)help(sys.stdout)help(sys.s转载 2014-03-06 21:49:57 · 410 阅读 · 0 评论 -
python操作csv文件
举几个例子来介绍一下,Python 的 CSV模块的使用方法,包括,reader, writer, DictReader, DictWriter.register_dialect一直非常喜欢python的csv模块,简单易用,经常在项目中使用,现在举几个例子说明一下。reader(csvfile[, dialect='excel'][, fmtparam])参数表:csvfile转载 2014-04-22 13:43:06 · 827 阅读 · 0 评论 -
python 调用grep
#因为我现在还有找到在大量文件查找python实现的好方法。#实现采用了grep的方法。#使用了os.popen而不是subprocess中的Popen,因为前者的参数更简单#不知subprocess中的Popen是否有更好的地方?#gtalk: xurongzhong#gmail.comimport reimport timeimport random转载 2014-04-22 13:47:27 · 12529 阅读 · 0 评论 -
python 动态调用函数
def do_foo(): print 'foo'class Print(ob原创 2014-06-25 15:59:50 · 692 阅读 · 0 评论