When a StringIO object is created, it can be initialized to an existing string by passing the string to the constructor.If no string is given, the StringIO will start empty. The StringIO object can accept either Unicode or 8-bitstrings, but mixing the two may take some care. 文字列を渡さない場合、最初は StringIO はカラです。 StringIO オブジェクトはユニコードも 8-bit の文字列も受け付けますが、この2つを混ぜることには少し注意が必要です。 - Python
Copyright 2001-2004 Python Software Foundation.All rights reserved. Copyright 2000 BeOpen.com.All rights reserved. Copyright 1995-2000 Corporation for National Research Initiatives.All rights reserved. Copyright 1991-1995 Stichting Mathematisch Centrum.All rights reserved.