To define a custom Python class, add the #[pyclass] attribute to a Rust ... #[pyo3(get)] num: i32, } Python::with_gil(|py| { let obj = PyCell::new(py, ...
確定! 回上一頁