Fermer un fichier après l’utilisation

Author:

 fichier
{filelink=16392}

 
import os
 
test=open("test.txt","r")
test.write("Bienvenu sur pthon")
 
print type(test)
test.close() #Fermer le fichier

Livres Sur ce Sujet

Apprendre à programmer avec Python 3 Apprenez à programmer en Python Python : Petit guide à l’usage du développeur agile Apprendre à programmer avec Python 3 : Avec plus de 50 pages de corigés d’exercices !

Leave a Reply

Your email address will not be published. Required fields are marked *


× 4 = sixteen