Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 28c10c75 rédigé par Lana Heyrendt's avatar Lana Heyrendt
Parcourir les fichiers

Merge nametuple

parents f66b0459 68d38b54
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
.vscode/
__pycache__/
......@@ -4,12 +4,17 @@ import math
import random
from collections import namedtuple
from typing import *
Point = namedtuple('Point', 'x', 'y')
Point = namedtuple('Point', 'x y')
def distance_euclidienne(point_a: Point, point_b: Point) -> float:
return math.sqrt((point_a.x - point_b.x)**2 + (point_a.y - point_b.y)**2)
carre_x = (point_a.x - point_b.x) ** 2
carre_y = (point_a.y - point_b.y) ** 2
return math.sqrt(carre_x + carre_y)
def Partitonement(S : list[float],K : list[float],N : int) --> set[set[point]]
def Partitonement(S : list[float],K : list[float],N : int) --> set[set[Point]] :
pass
def main() :
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter