cl: _testpy/pow (multiargs)

This commit is contained in:
xushiwei
2024-05-15 08:44:00 +08:00
parent 120b507c75
commit 56269bd52b
4 changed files with 182 additions and 9 deletions

12
cl/_testpy/pow/in.go Normal file
View File

@@ -0,0 +1,12 @@
package main
import (
"github.com/goplus/llgo/c"
"github.com/goplus/llgo/py"
"github.com/goplus/llgo/py/math"
)
func main() {
x := math.Pow(py.Float(2), py.Float(3))
c.Printf(c.Str("pow(2, 3) = %f\n"), x.Float64())
}