Python
Orienté objet
Méthodes statiques
class A(): @staticmethod def test(): print "hello" a = A() a.test()
Fragements de code
Lister les fichiers d'un répertoire
import os for fichier in os.listdir('repertoire'): print fichier
class A(): @staticmethod def test(): print "hello" a = A() a.test()
import os for fichier in os.listdir('repertoire'): print fichier