输入圆的半径 输出圆的周长和面积。
已帮助 人
回答
共1条回复-
from math import * r=int(input('请输入圆的半径:')) p=2*pi*r s=pi*r**2 print('圆的周长为:{:.2f}'.format(p)) print(' 圆的面积为:{:.2f}'.format(s))

