tempmorph
1.0.0
TempMorphは、温度をあるスケールから別のスケールに変換するのに役立つPythonパッケージです。このバージョンは現在、Celcius、Fahrenheit、Kelvin、Reaumur、およびRankineで動作しています。
pip install tempmorph==0.0.1
注意すべきこと:
1 =セルシウス
2 =華氏
3 =ケルビン
4 = reaumur
5 =ランキン
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 ()出力=文字列 +シンボル:
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サイトを開くには、ここをクリックしてください