Voici un très court exemple de thread en python. A vous d'égayer le code à votre convenance. A savoir : il existe une autre façon de créer des threads... Lire la suite
ça recherche le meillieur chemin. ça peut toujours servir. Source / Exemple : ... ... Conclusion : j'ai la meme chose en mieux en C, mais comme... Lire la suite
vous connaissez surement ce jeu, donc je vais pas expliquer quel est son principe. et pour ceux qui connaissent pas, je suis desolé ;). j'ai utiliser... Lire la suite
j'ai fait ce code pour imiter la meniere de faire de wm. l'utilisation des %a dans les menu est surpuissant. Source / Exemple : ... ... Conclusion... Lire la suite
Voici dépourvu de tout code supperflu un exemple de socket sous Python. Cette source n'est pas utilisable toute seule, à vous de rajouter ce dont vous... Lire la suite
Ce code est juste là pour montrer comment on peut faire un client / serveur sous Python et comment on peut faire des fenêtres/menus avex wxPython.... Lire la suite
- ouverture d'un fichier fic open('test.txt','a') // mode ajout fic open('test.txt','w') // mode création fic... Lire la suite
Un petit bout de code qui me sert à gérer mes MP3 pour stocker toutes les infos dans une base de données. La version fournie ne comporte pas le module base... Lire la suite
Comme les administrateurs réseaux n'étaient pas capable ( en fait c'était plutôt n'étaient pas très motivés ) de nous mettre une heure... Lire la suite
Ben c'est mon premier programme. Donc soyez un peu indulgeants svp ;) Donc c'est tout simple mais ca m'a appris a maitriser les conditions et... Lire la suite
Python est fourni avec un module qui permet de mesurer le temps passé dans chaques méthodes ou fonctions : le module Profile Exemple d'utilisation : La... Lire la suite
Le zip contient un ensemble de petits codes sources permettant de créer des widgets graphiques(bouton, alertes, etc.). Scripts développés avec la version... Lire la suite
Script réalisé sous python 2.2.3 avec la bibliothèque TKinter. Il permet de détecter l'emplacement d'un clic à l'intérieur d'une... Lire la suite