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网站