tempmorph
1.0.0
Tempmorph เป็นแพ็คเกจ Python ที่ช่วยให้คุณแปลงอุณหภูมิจากสเกลหนึ่งไปอีกสเกล รุ่นนี้ทำงานกับ Celcius, Fahrenheit, Kelvin, Reaumur และ Rankine
pip install tempmorph==0.0.1
สิ่งที่ควรทราบ:
1 = Celcius
2 = ฟาเรนไฮต์
3 = เคลวิน
4 = reaumur
5 = Rankine
เอาท์พุท = ลอย:
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