题解 | #球的表面积#
球的表面积
https://www.nowcoder.com/practice/7a5e2f1ed2594e38bad804323a775c93
import math def func(ball): for i in ball: answer_ball = 4*math.pi*i**2 print(round(answer_ball, 2)) ball = [1 ,2, 4, 9, 10, 13] # 球的半径 func(ball)
球的表面积
https://www.nowcoder.com/practice/7a5e2f1ed2594e38bad804323a775c93
import math def func(ball): for i in ball: answer_ball = 4*math.pi*i**2 print(round(answer_ball, 2)) ball = [1 ,2, 4, 9, 10, 13] # 球的半径 func(ball)
相关推荐