tempmorph
1.0.0
TempMorph هي حزمة Python التي تساعدك على تحويل درجة حرارة من مقياس إلى آخر. يعمل هذا الإصدار حاليًا على Celcius و Fahrenheit و Kelvin و Reaumur و Rankine.
pip install tempmorph==0.0.1
أشياء يجب ملاحظة:
1 = Celcius
2 = فهرنهايت
3 = كيلفن
4 = Reaumur
5 = رانكين
الإخراج = تعويم:
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