Skip to content

Commit 0114a74

Browse files
authored
Update python.md
1 parent 574355b commit 0114a74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: python.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ category: Python
121121
```py
122122
file = open("hello.txt", "r") # open in read mode 'r'
123123
file.close()
124+
```
124125

125-
---
126+
```py
126127
print(file.read()) # read the entire file and set the cursor at the end of file
127128
print file.readline() # Reading one line
128129
file.seek(0, 0) # place the cursor at the beggining of the file

0 commit comments

Comments
 (0)