Files
llgo/_pydemo/max/max.go
2025-04-03 16:26:11 +08:00

16 lines
278 B
Go

package main
import (
"github.com/goplus/lib/py"
"github.com/goplus/lib/py/std"
)
func main() {
x := std.Max(py.Float(3.0), py.Float(9.0), py.Float(23.0), py.Float(100.0))
std.Print(x)
list := py.List(3.0, 9.0, 23.0, 100.0)
y := std.Max(std.Iter(list))
std.Print(y)
}