Answers for "ecrire fichier python"

1

lecture de fichier python

# coding: utf-8

fichier = open("data.txt", "r")
print fichier.read()
fichier.close()
Posted by: Guest on April-02-2020
0

python vrer un fichier texte

with open("test.txt", "w") as f: # gère close() automatiquement
    # traitement
Posted by: Guest on April-14-2020

Python Answers by Framework

Browse Popular Code Answers by Language