eadl:bloc5:fm3:td1

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
eadl:bloc5:fm3:td1 [2026/09/17 00:40] – [3. Architecture utilisée] jcheroneadl:bloc5:fm3:td1 [2026/09/17 14:29] (Version actuelle) – jcheron
Ligne 313: Ligne 313:
         "montant"         "montant"
     ])     ])
-date_depart = date(2026, 1, 1)+    date_depart = date(2026, 1, 1)
  
-for i in range(args.lignes): +    for i in range(args.lignes): 
-    jour = date_depart + timedelta(days=random.randint(0, 30)) +        jour = date_depart + timedelta(days=random.randint(0, 30)) 
-    commande_id = f"C{i:07d}" +        commande_id = f"C{i:07d}" 
-    client_id = f"CL{random.randint(1, 50000):05d}" +        client_id = f"CL{random.randint(1, 50000):05d}" 
-    categorie = random.choice(categories) +        categorie = random.choice(categories) 
-    ville = random.choice(villes) +        ville = random.choice(villes) 
-    montant = round(random.uniform(5, 500), 2)+        montant = round(random.uniform(5, 500), 2)
  
-    writer.writerow([ +        writer.writerow([ 
-        jour, +            jour, 
-        commande_id, +            commande_id, 
-        client_id, +            client_id, 
-        categorie, +            categorie, 
-        ville, +            ville, 
-        montant +            montant 
-    ])+        ])
 </sxh> </sxh>
  
  • eadl/bloc5/fm3/td1.1789598435.txt.gz
  • Dernière modification : il y a 8 semaines
  • de jcheron