使用StringIO模块可以在内存中创建文件,文件内容格式为字符串。 ... Python. import StringIO a = StringIO.StringIO() a.write('First') print ...
確定! 回上一頁