@anonymous/

ImmediateCompetentXenopterygii

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
with open('file.txt', 'w') as some_file:
    some_file.write("Test data")

with open('file.txt') as fp:
    lines = fp.read().split("\n")
    print('fp.closed, inside block:', fp.closed)

print('fp.closed, after block:', fp.closed)

print lines