github.com/goplus/llgo@v0.8.3/_pydemo/statistics/statistics.go (about) 1 package main 2 3 import ( 4 "github.com/goplus/llgo/c" 5 "github.com/goplus/llgo/py" 6 "github.com/goplus/llgo/py/statistics" 7 ) 8 9 func main() { 10 list := py.List(1.0, 2.0, 3.0, 4.0, 4.0) 11 mean := statistics.Mean(list) 12 c.Printf(c.Str("mean(1, 2, 3, 4, 4) = %f\n"), mean.Float64()) 13 }