第9章

04-13Ctrl+D 收藏本站

关灯 直达底部

动手试一试

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