摘要: 《Python核心编程》第二版第97页第五章练习和大家分享自己完成的《Python核心编程》答案。因为不是来自官方资源,是自己的的练习,可能有误或者并非最好的解决办法。【推荐】晒一晒一个程序员《读过的好书》http://debug-sai.blogbus.com/logs/42178629.html5-8.几何。计算面积和体积。(a)正方形和立方体(b)圆和球【答案】代码如下:a = float(raw_input('Please input a numner: ... '))print 'If this is a side length of a square ... 阅读全文
posted @ 2011-01-28 12:49 balian 阅读(1156) 评论(0) 推荐(0) 编辑