fork download
  1. from StringIO import StringIO
  2.  
  3. f = StringIO('abc')
  4. print repr(f.read())
  5. print repr(f.read())
  6.  
  7.  
Success #stdin #stdout 0.03s 6356KB
stdin
Standard input is empty
stdout
'abc'
''