modifié : sio2/sisr/20-python/exo4.py
This commit is contained in:
parent
afc22ebbf9
commit
46bf69ee87
@ -29,6 +29,7 @@ def main(filename):
|
||||
except Exception as e:
|
||||
print(f"Erreur lors de la lecture du fichier {filename}: {e}")
|
||||
|
||||
# Point d'entrée du script
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) != 2:
|
||||
print("Usage: python exo4.py <nom_du_fichier>")
|
||||
|
Loading…
x
Reference in New Issue
Block a user