Skip to content

Commit 7173257

Browse files
committed
Open modes
1 parent 9f78310 commit 7173257

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -888,15 +888,15 @@ while True:
888888
```
889889

890890
#### Modes:
891-
* `'r'` - Read (default).
892-
* `'w'` - Write (truncate).
893-
* `'x'` - Write or fail if file already exists.
894-
* `'a'` - Append.
895-
* `'w+'` - Read and write (truncate).
896-
* `'r+'` - Read and write from beginning.
897-
* `'a+'` - Read and write from the end.
898-
* `'b'` - Binary mode.
899-
* `'t'` - Text mode (default).
891+
* **`'r'` - Read (default).**
892+
* **`'w'` - Write (truncate).**
893+
* **`'x'` - Write or fail if the file already exists.**
894+
* **`'a'` - Append.**
895+
* **`'w+'` - Read and write (truncate).**
896+
* **`'r+'` - Read and write from the beginning.**
897+
* **`'a+'` - Read and write from the end.**
898+
* **`'b'` - Binary mode.**
899+
* **`'t'` - Text mode (default).**
900900

901901
#### Newline - input:
902902
* `'None'` - Input is broken on `'\n'`, `'\r'` and `'\r\n'`. `'\r'` and `'\r\n'` are translated to `'\n'`.

0 commit comments

Comments
 (0)