第2部分将会演示更多J BI模式标记的使用。
但是,在这情况下,必须用' w '模式标记指定要写入文件。
But in this case, you must specify that you want to write to the file by using the 'w' mode flag.
在写完所有数据之后,关闭文件并重新打开文件进行读取,还是使用二进制模式标记。
After you've written all the data, you close the file and reopen it for reading, again using the binary mode flag.
应用推荐