第 9 章

    动手试一试

    1. 下面是我为温度转换程序增加的一些注释:
    # tempconv1.py
    # program to convert a Fahrenheit temperature to Celsius
    Fahr = 75
    Cel = (Fahr - 32) * 5.0 / 9 #decimal division, not integer
    print "Fahrenheit = ", Fahr, "Celsius = ", Cel