首页 > 解决方案 > 如何访问 std::tuple来自python中的c++

问题描述

我在 c++ 中定义了一个元组函数,std::tuple<double,double>有谁知道如何在 python中的<double,double>with方法中访问返回变量?ctype.restype

我正在使用restype = ctypes.c_double,但这不起作用。

标签: pythonctypes

解决方案


推荐阅读