move python demos to _pydemo
This commit is contained in:
13
_pydemo/hellopy/hello.go
Normal file
13
_pydemo/hellopy/hello.go
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user