Files
llgo/_pydemo/max/max.go

16 lines
278 B
Go
Raw Normal View History

2024-05-18 23:14:56 +08:00
package main
import (
2025-04-03 15:52:18 +08:00
"github.com/goplus/lib/py"
"github.com/goplus/lib/py/std"
2024-05-18 23:14:56 +08:00
)
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)
2024-05-18 23:14:56 +08:00
}