Open ThomasXu18 opened 5 years ago
int n; char *s; PyObject* list; PyArg_ParseTuple(args, "siO", &n, &s, &list);
PyArg_ParseTuple(args, "siO", &n, &s, &list); 中 &n 与 &s 的顺序写反了。 应为
PyArg_ParseTuple(args, "siO", &n, &s, &list);
&n
&s
int n; char *s; PyObject* list; PyArg_ParseTuple(args, "siO", &s, &n, &list);
PyArg_ParseTuple(args, "siO", &n, &s, &list);
中&n
与&s
的顺序写反了。 应为