2025-07-29 10:48:44 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/goplus/lib/py"
|
2025-07-29 20:55:56 +08:00
|
|
|
"github.com/goplus/lib/py/math"
|
2025-07-29 10:48:44 +08:00
|
|
|
"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"))
|
2025-07-29 20:55:56 +08:00
|
|
|
y := py.List(std.Abs, std.Print, math.Pi)
|
|
|
|
|
std.Print(x, y)
|
2025-07-29 10:48:44 +08:00
|
|
|
}
|