Python 求圆的面积

r=int(input('输入半径值:'))
area=3.1415*r*r
print(area)
#保留小数点后两位
print('{:.2f}'.format(area))```

你可能感兴趣的:(Python基础,python)