github.com/goplus/llgo@v0.8.3/_pydemo/callpy/callpy.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/math" 7 ) 8 9 func main() { 10 x := math.Sqrt(py.Float(2)) 11 c.Printf(c.Str("sqrt(2) = %f\n"), x.Float64()) 12 }