ssa: PyVal support pyfunc

This commit is contained in:
visualfc
2025-07-29 20:55:56 +08:00
parent a9193e36ff
commit 2538be9318
3 changed files with 27 additions and 5 deletions

View File

@@ -2,10 +2,12 @@ package main
import (
"github.com/goplus/lib/py"
"github.com/goplus/lib/py/math"
"github.com/goplus/lib/py/std"
)
func main() {
x := py.List(true, false, 1, float32(2.1), 3.1, uint(4), 1+2i, complex64(3+4i), "hello", []byte("world"))
std.Print(x)
y := py.List(std.Abs, std.Print, math.Pi)
std.Print(x, y)
}