题解 | #球的表面积#
球的表面积
https://www.nowcoder.com/practice/7a5e2f1ed2594e38bad804323a775c93
import math r = [1, 2, 4, 9, 10, 13] def cal(r_list: list): v_list = [ round(4 * math.pi * r**2, 2) for r in r_list ] for v in v_list: print(v, end='\n') cal(r)
球的表面积
https://www.nowcoder.com/practice/7a5e2f1ed2594e38bad804323a775c93
import math r = [1, 2, 4, 9, 10, 13] def cal(r_list: list): v_list = [ round(4 * math.pi * r**2, 2) for r in r_list ] for v in v_list: print(v, end='\n') cal(r)
相关推荐