Programme Python pour évaluer si un fichier est fermé ou non
with open('file1.txt','r') as f:
print(f.closed)
f.close()
print(f.closed)
Man
with open('file1.txt','r') as f:
print(f.closed)
f.close()
print(f.closed)