基于此我可以创建一个同质的 Python 字典。
如何创建具有混合类型值的字典,例如使其工作:
let dict = [ ("num", 8), ("str", "asd") ].into_py_dict(py);
?
rust pyo3
pyo3 ×1
rust ×1