Python 攝氏華氏溫度轉換(函數) – George的生活點滴
文章推薦指數: 80 %
我們可以寫出兩個程式來. # 攝氏轉華氏c2f.py degree_c = int(input("請輸入攝氏溫度:")) degree_f = degree_c * 1.8 +32 print ("攝氏%d 度等於 ...
Skiptocontent
HomePythonPython攝氏華氏溫度轉換(函數)
攝氏°C(Celsius)目前大多數的國家都使用的溫度單位。
延伸文章資訊
- 1Python-9-實作-攝氏(C)華氏(F) 互轉| Yiru@Studio - 點部落
1.輸入攝氏轉華氏2.輸入華氏轉攝氏公式為:華氏= 9/5*攝氏+32攝氏= (華氏-32)* 5/9.
- 2C語言溫度轉換程式片段@ 荒廢網誌:: 隨意窩Xuite日誌
XD 攝氏轉華氏#include main(){ float f,c; printf("請輸入攝氏"); scanf("%f",&c); f=(9.0*c)/5.0+32.0; printf("...
- 3不要太認真學Python! - Day 6 - iT 邦幫忙 - iThome
今天繼續研究這個程式「華氏溫度轉攝氏溫度」到底出了什麼毛病。 ... #!/usr/bin/python #coding:utf-8 f=float(input('請輸入華氏溫度:')) c=(...
- 4Python 攝氏華氏溫度轉換(函數) – George的生活點滴
我們可以寫出兩個程式來. # 攝氏轉華氏c2f.py degree_c = int(input("請輸入攝氏溫度:")) degree_f = degree_c * 1.8 +32 print ...
- 5107103146: 作業5:攝氏轉華氏(副程式)
作業5:攝氏轉華氏(副程式). 攝氏轉華氏(副程式). 1.APP重點說明:套用副程式來轉換,將攝氏溫度(C)轉化為華氏溫度(F), 按下轉換,輸入你要的溫度,就 ...