python计算圆的面积
摘要:引入pi的两种方法: 方法一: import math print(math.pi) 方法二: from math import pi print(pi) 计算圆的面积的代码: #计算圆的面积 from math import pi r=float(input('输入半径的长度:')) area=p
阅读全文
posted @ 2020-03-04 23:35
posted @ 2020-03-04 23:35
posted @ 2020-03-04 23:32
posted @ 2020-03-04 23:30