Update README.md

This commit is contained in:
xushiwei
2024-05-13 01:27:02 +08:00
committed by GitHub
parent 1463ed4835
commit fa3149c660

View File

@@ -46,7 +46,9 @@ func main() {
}
```
Here, We call `py.Float(2)` to create a Python floating point number 2, and pass it to Pythons `math.sqrt` to get `x`. Then use `x.Float64()` to convert the Python object to Go's `float64` type, and finally we print the value through C `printf`.
Here, We call `py.Float(2)` to create a Python number 2, and pass it to Pythons `math.sqrt` to get `x`. Then use `x.Float64()` to convert x to Go's `float64` type, and print the value through the C `printf` function.
See [github.com/goplus/llgo/py](https://pkg.go.dev/github.com/goplus/llgo/py) for more detials.
## Other frequently used libraries