py/std done; demo: max

This commit is contained in:
xushiwei
2024-05-18 23:14:56 +08:00
parent 7228709616
commit 1acfb53c4c
2 changed files with 122 additions and 0 deletions

15
_pydemo/max/max.go Normal file
View File

@@ -0,0 +1,15 @@
package main
import (
"github.com/goplus/llgo/py"
"github.com/goplus/llgo/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)
// y := py.List(3.0, 9.0, 23.0, 100.0)
// ymax := std.Max(std.Iter(y))
// std.Print(ymax)
}