« Programmation Python/Programmer en deux minutes/une messagerie instantanée » : différence entre les versions

Contenu supprimé Contenu ajouté
0 c'est troublant
DannyS712 (discussion | contributions)
m <source> -> <syntaxhighlight> (phab:T237267)
 
Ligne 8 :
{|width=70% align=center
|{{boîte déroulante début|titre=ecoute.py}}
<sourcesyntaxhighlight lang=python>
#!/usr/bin/python
# -*- coding: latin-1 -*-
Ligne 41 :
client.close() # ferme la connexion lorsque le client est parti : [ctrl+C] pour abandonner l'execution du programme.
</syntaxhighlight>
</source>
{{boîte déroulante fin}}
|}
Ligne 50 :
{|width=70% align=center
|{{boîte déroulante début|titre=discussion.py}}
<sourcesyntaxhighlight lang=python>
#!/usr/bin/python
# -*- coding: latin-1 -*-
Ligne 75 :
client.close() # ferme la connexion lorsque le client quitte.
</syntaxhighlight>
</source>
{{boîte déroulante fin}}
|}