摘要:
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 阅读全文