页次: 1
在pyi模块中定义了该接口 ,
def get_para(self)->dict:
C中参考了返列表的操作,实现不了,关键代码如下:
PikaObj* dict = newNormalObj(New_PikaStdData_Dict);
PikaStdData_Dict___init__(dict);
Arg* arg = arg_setBytes(NULL, "", para1, 32);
PikaStdData_Dict_set(dict,"para1", arg);
arg_deinit(arg);
arg = arg_setBytes(NULL, "", para2, 32);
PikaStdData_Dict_set(dict,"para2", arg);
arg_deinit(arg);
return dict;
页次: 1