nouveau fichier : creatusr.py

nouveau fichier : users.txt
This commit is contained in:
root 2024-10-03 11:58:20 +02:00
parent c36eb6b92a
commit f3d41d6c83
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/usr/bin/python3
try:
fh = open("users.txt", "r")
except:
print("Fichier inconnu")
else:
line = fh.readline()
while line:

View File

@ -0,0 +1,3 @@
adupont:Albert Dupont
jduroy:Jeannette Duroy
mdurand:Marcelle Durand