
python
bigfoolish
这个作者很懒,什么都没留下…
展开
-
Python中有用的库
StringIO:可用于stream重定向,将标准输入输出定位到,StringIO中,并通过getValue方法返回字符串pdfMiner,pyPdf:用于PDF解析re:正则表达式库2010-11-30 16:12:00 · 78 阅读 · 0 评论 -
stdout重定向
from cStringIO import StringIOold_stdout = sys.stdoutsys.stdout = mystdout = StringIO()# blah blah lots of code ...sys.stdout = old_stdout# examine mystdout.getvalue()2010-11-30 16:13:00 · 244 阅读 · 0 评论