Bonjour,
L'exemple des thread ne marche pa chez moi
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 import threading def affiche(nb, nom = ''): for i in range(nb): print nom, i a = threading.Thread(None, affiche, None, (200,), {'nom':'thread a'}) b = threading.Thread(None, affiche, None, (200,), {'nom':'thread b'}) a.start() b.start()
[IMG][/IMG]
Partager