J'aimerai faire matrix en python mais je n'y arrive pas.
Résolu
Multi73
Messages postés
95
Statut
Membre
-
Multi73 Messages postés 95 Statut Membre -
Multi73 Messages postés 95 Statut Membre -
Bonjour,
J'aimerai faire matrix en python mais je n'y arrive pas.
Voici mon programme.
Pouvez vous m'aidez svp ?
J'aimerai faire matrix en python mais je n'y arrive pas.
Voici mon programme.
import time
import os.system
os.system("color a")
x=1
while x = 1
print(%random%%random%%random%%random%%random%%random%%random%%random%)
Pouvez vous m'aidez svp ?
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
- \R python ✓ - Forum Python
- Matrix streaming vf ✓ - Forum Cinéma / Télé
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