py demo: hellpy, clpy, callpy

This commit is contained in:
xushiwei
2024-05-11 04:26:41 +08:00
parent c9cc7ad9f7
commit d9db5528f5
8 changed files with 421 additions and 1 deletions

13
_demo/hellopy/hello.go Normal file
View File

@@ -0,0 +1,13 @@
package main
import (
"github.com/goplus/llgo/c"
"github.com/goplus/llgo/py"
)
func main() {
py.Initialize()
py.SetProgramName(*c.Argv)
py.RunSimpleString(c.Str(`print('Hello, World!')`))
py.Finalize()
}