摘要: StringIO is usually used for buffer of string. which can have stdin,stdout,stderr redirected to a buffer.this moudle contains all of below methods.f=StringIO()#readyforwritingf=StringIO(buf)#readyforreadingf.close()#explicitlyreleaseresourcesheldflag=f.isatty()#alwaysfalsepos=f.tell()#getcurrentposi 阅读全文
posted @ 2014-01-06 23:26 Yu Zi 阅读(321) 评论(0) 推荐(0) 编辑