tempmorph
1.0.0
TempMorph ist ein Python -Paket, mit dem Sie eine Temperatur von einer Skala in eine andere umwandeln können. Diese Version funktioniert derzeit auf Celcius, Fahrenheit, Kelvin, Reumur und Rankine.
pip install tempmorph==0.0.1
Dinge zu beachten:
1 = Celcius
2 = Fahrenheit
3 = Kelvin
4 = Reumur
5 = Rankine
Ausgabe = 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 ()Ausgabe = Zeichenfolge + Symbol:
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'Klicken Sie hier, um die PYPI -Site zu öffnen