tempmorph
1.0.0
tempmorph是一個Python軟件包,可幫助您將溫度從一個刻度轉換為另一個比例。此版本目前在Celcius,Wahrenheit,Kelvin,Reaumur和Rankine上都可以使用。
pip install tempmorph==0.0.1
要注意的事情:
1 = Celcius
2 =華氏
3 =開爾文
4 = reaumur
5 =蘭金
輸出= 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 ()輸出=字符串 +符號:
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'單擊此處打開PYPI網站