Bonjour, j'aimerais afficher ce que j'ai écrits dans le fichier toto.
Voici mon code:
Voici l'erreurCode:
1
2
3
4
5
6 import os,sys fd=os.open("toto", os.O_CREAT|os.O_WRONLY) os.write(fd,"Je m'apelle toto") os.execl("echo", "toto") os.close(fd)
File "fich.py", line 5, in <module>
os.execl("echo", "toto")
File "/usr/lib/python2.7/os.py", line 312, in execl
execv(file, args)
OSError: [Errno 2] No such file or directory
zsh: exit 1 python fich.py
Merci, pour votre aide.