J'aimerai faire matrix en python mais je n'y arrive pas.
Résolu
Multi73
Messages postés
88
Date d'inscription
Statut
Membre
Dernière intervention
-
Multi73 Messages postés 88 Date d'inscription Statut Membre Dernière intervention -
Multi73 Messages postés 88 Date d'inscription Statut Membre Dernière intervention -
A voir également:
- J'aimerai faire matrix en python mais je n'y arrive pas.
- Citizen code python avis - Accueil - Outils
- Matrix logiciel - Télécharger - Calcul & Conversion
- Intel matrix storage manager - Télécharger - Pilotes & Matériel
- Python est introuvable. exúcutez sans argument pour procúder ó l ✓ - Forum Python
- Mot secret python pix ✓ - Forum Python
2 réponses
Bonjour,
Tu devrais reprendre le cours Python au début ;-)
x=1 affectation
x==1 test égalité
puis un bloc (if,while, def ...) a une ligne titre qui se termine par : donc
puis pas besoin d'une variable x, on peut faire une boucle infinie :
%random% c'est une variable MSDOS/ligne de commande, dans Python ce sera :
ou un truc batard
mais alors autant faire du msdos, pas du python
Tu devrais reprendre le cours Python au début ;-)
x=1 affectation
x==1 test égalité
puis un bloc (if,while, def ...) a une ligne titre qui se termine par : donc
while x==1:
puis pas besoin d'une variable x, on peut faire une boucle infinie :
while True:
%random% c'est une variable MSDOS/ligne de commande, dans Python ce sera :
import os import random os.system("color a") while True: print(random.randint(0,9),random.randint(0,9),random.randint(0,9),random.randint(0,9),random.randint(0,9),random.randint(0,9))
ou un truc batard
import os import random os.system("color a") while True: os.system('echo %random% %random% %random% %random% %random% %random% %random% %random%')
mais alors autant faire du msdos, pas du python