与书里的练习题有些不太一样,书里是没有D变量的,是直接一条表达式完成的
print "this py converts fahrenheit to celsiue"print "enter the temperature in F"F=raw_input()D=int(F)-32C=D*5.0/9print "Celsiue is "print C
python练习-华氏转摄氏
原文:http://huzhongliang.blog.51cto.com/1817180/1890040