题解 | #球的表面积#
球的表面积
https://www.nowcoder.com/practice/7a5e2f1ed2594e38bad804323a775c93
import math def surface_area(*args): PI = math.pi for r in args: V=round(4*PI*r**2,2) print(V) radius_list = [1, 2, 4, 9, 10, 13] surface_area(*radius_list)
球的表面积
https://www.nowcoder.com/practice/7a5e2f1ed2594e38bad804323a775c93
import math def surface_area(*args): PI = math.pi for r in args: V=round(4*PI*r**2,2) print(V) radius_list = [1, 2, 4, 9, 10, 13] surface_area(*radius_list)
相关推荐