我正在尝试在python(ctypes)中构建一个结构并将其传递给C ++文件, 我正在尝试做这样的事情:
的Python
class Astruct(Structure):
_fields_ = ("fieldA",c_int) , ("fieldB", (pointer_of(some_object)) * 5)
C ++
struct Astruct{
private:
int fieldA[52] = {0};
some_object *fieldB[2];
....
我该怎么做?
由于