StringIO () 和 io.BytesIO() 类来创建类文件对象操作字符串数据。比如:. >>> s = io.StringIO() >>> s.write('Hello World\n') 12 >>> print('This is a test', ...
確定! 回上一頁