【Python】计算圆的面积

代码:

r=29
area = 3.1415*r*r
print(area)
print("{:.2f}".format(area))

结果:

posted @ 2019-12-19 21:45  木子欢儿  阅读(3458)  评论(0编辑  收藏  举报