Comment supprimer pi? [dupliquer]

Sep 07 2020

J'ai le calcul de pi

import math
PI = math.acos(-1)

Maintenant, je veux supprimer PI pour conserver la mémoire (RAM). Comment puis-je?

Réponses

2 Adirio Sep 07 2020 at 11:55

Utilisation del

import math


PI = math.acos(-1)
del PI

Note latérale: a mathdéjà picalculé:

import math

print(math.pi)