move python demos to _pydemo

This commit is contained in:
xushiwei
2024-05-11 05:04:02 +08:00
parent d9db5528f5
commit 31d91f5e87
5 changed files with 30 additions and 1 deletions

13
_pydemo/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()
}