【发布时间】:2022-11-20 20:50:12
【问题描述】:
我如何获得python函数的结果?
蟒蛇代码:
def test_function():
print("running test function")
"text content"
防锈代码:
Python::with_gil(|py| {
let python_module: Py<PyAny> = PyModule::import(py, "model")?
.call_method0("runner")?
.into();
})
【问题讨论】:
-
你不
return来自 Python 函数
标签: rust