📜  io.UnsupportedOperation:不可读 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:31.440000             🧑  作者: Mango

代码示例1
"r"   Opens a file for reading only.
"r+"  Opens a file for both reading and writing.
"rb"  Opens a file for reading only in binary format.
"rb+" Opens a file for both reading and writing in binary format.
"w"   Opens a file for writing only.
"a"   Open for writing.  The file is created if it does not exist.
"a+"  Open for reading and writing.  The file is created if it does not exist.