math math.Sum 返回所有数字之和。接受标量、切片,或两者混用。 签名 math.Sum VALUE... 返回类型 float64 {{ math.Sum 1 (slice 2 3) 4 }} → 10 ← 上一篇:math.Sub 下一篇:math.Tan →