nouveau fichier : creatusr.py
nouveau fichier : users.txt
This commit is contained in:
parent
c36eb6b92a
commit
f3d41d6c83
10
sio2/SISR/07-python/creatusr/creatusr.py
Normal file
10
sio2/SISR/07-python/creatusr/creatusr.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
try:
|
||||||
|
fh = open("users.txt", "r")
|
||||||
|
except:
|
||||||
|
print("Fichier inconnu")
|
||||||
|
else:
|
||||||
|
line = fh.readline()
|
||||||
|
while line:
|
||||||
|
|
3
sio2/SISR/07-python/creatusr/users.txt
Normal file
3
sio2/SISR/07-python/creatusr/users.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
adupont:Albert Dupont
|
||||||
|
jduroy:Jeannette Duroy
|
||||||
|
mdurand:Marcelle Durand
|
Loading…
x
Reference in New Issue
Block a user