python求圆的周长和面积

import math R=float(input(‘请输入圆的半径:’)) S=math.pi * R * R L=2 * math.pi * R print(‘圆的面积:’+str(S)+’\n’+‘圆的周长:’+str(L)) #测试结果如下:
相关文章
相关标签/搜索