动手试一试
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