mirror of
https://github.com/goplus/llgo.git
synced 2025-09-27 03:56:05 +08:00
14 lines
272 B
Go
14 lines
272 B
Go
package main
|
|
|
|
import (
|
|
"github.com/goplus/lib/c"
|
|
"github.com/goplus/lib/py"
|
|
"github.com/goplus/lib/py/statistics"
|
|
)
|
|
|
|
func main() {
|
|
list := py.List(1.0, 2.0, 3.0, 4.0, 4.0)
|
|
mean := statistics.Mean(list)
|
|
c.Printf(c.Str("mean(1, 2, 3, 4, 4) = %f\n"), mean.Float64())
|
|
}
|