tempmorph
1.0.0
Tempmorph adalah paket Python yang membantu Anda mengkonversi suhu dari satu skala ke skala lainnya. Versi ini saat ini bekerja di Celcius, Fahrenheit, Kelvin, Reagin, dan Rankine.
pip install tempmorph==0.0.1
Hal -hal yang perlu diperhatikan:
1 = Celcius
2 = Fahrenheit
3 = Kelvin
4 = reaumur
5 = Rankine
Output = 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 ()Output = string + simbol:
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'Klik di sini untuk membuka situs PYPI