動手試一試
1. 下面是我為溫度轉換程序增加的一些註釋:
# tempconv1.py# program to convert a Fahrenheit temperature to CelsiusFahr = 75Cel = (Fahr - 32) * 5.0 / 9 #decimal pision, not integerprint "Fahrenheit = ", Fahr, "Celsius = ", Cel
手機閱讀更精彩!
讀古今文學網 > 父與子的編程之旅:與小卡特一起學Python > 第9章 >
1. 下面是我為溫度轉換程序增加的一些註釋:
# tempconv1.py# program to convert a Fahrenheit temperature to CelsiusFahr = 75Cel = (Fahr - 32) * 5.0 / 9 #decimal pision, not integerprint "Fahrenheit = ", Fahr, "Celsius = ", Cel