tempmorph
1.0.0
Tempmorph est un package Python qui vous aide à convertir une température d'une échelle à une autre. Cette version fonctionne actuellement sur Celcius, Fahrenheit, Kelvin, Reaumur et Rankine.
pip install tempmorph==0.0.1
Choses à noter:
1 = Celcius
2 = Fahrenheit
3 = Kelvin
4 = ReAumur
5 = Rankine
Sortie = float:
from tempmorph . conv import TempConv
# 30 is the value, 1 is Celcius (scale)
temp = TempConv ( 30 , 1 )
# Returns 87.6 (30 Celcius in Fahrenheit)
temp . fahrenheit ()Sortie = chaîne + symbole:
from tempmorph . conv import TempConv
temp_str = TempConv ( 373 , 3 )
temp_str . celcius ( 1 )
# ^
# By adding one as an argument, output will be '99.85 °C'Cliquez ici pour ouvrir le site PYPI