This action will force synchronization from EvanZhaoOwn/ffpython, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
def test_base(a1, a2, a3):print('test_base', a1, a2, a3)return 0def test_stl(a1, a2, a3):print('test_stl', a1, a2, a3)return Truedef test_return_stl():print('test_return_stl')#map<string, list<vector<int> > >ret = {'Oh':[[111,222], [333, 444] ] }return retdef test_reg_function():import ext1ext1.print_val(123, 45.6 , "----789---", [3.14])ret = ext1.return_stl()print('test_reg_function', ret)def test_register_base_class():import ext2foo = ext2.foo_t(20130426)print("test_register_base_class get_val:", foo.get_value())foo.set_value(778899)print("test_register_base_class get_val:", foo.get_value(), foo.m_value)foo.test_stl({"key": [11,22,33] })print('test_register_base_class test_register_base_class', foo)def test_register_inherit_class():import ext2dumy = ext2.dumy_t(20130426)print("test_register_inherit_class get_val:", dumy.get_value())dumy.set_value(778899)print("test_register_inherit_class get_val:", dumy.get_value(), dumy.m_value)dumy.test_stl({"key": [11,22,33] })dumy.dump()print('test_register_inherit_class', dumy)def test_cpp_obj_to_py_ext(foo):print('test_cpp_obj_to_py_ext', len(foo))for k in range(0, len(foo)):print('test_cpp_obj_to_py_ext', k, foo[k].m_value)def test_cpp_obj_to_py(foo):import ext2print("test_cpp_obj_to_py get_val:", foo.get_value())foo.set_value(778899)print("test_cpp_obj_to_py get_val:", foo.get_value(), foo.m_value)foo.test_stl({"key": [11,22,33] })foo.m_value = 100print('test_cpp_obj_to_py test_register_base_class', foo)def test_cpp_obj_py_obj(dumy):import ext2print("test_cpp_obj_py_obj get_val:", dumy.get_value())dumy.set_value(778899)print("test_cpp_obj_py_obj get_val:", dumy.get_value(), dumy.m_value)dumy.test_stl({"key": [11,22,33] })dumy.dump()ext2.obj_test(dumy)print('test_cpp_obj_py_obj', dumy)return dumyclass pyclass_t:def __init__(self):print('pyclass_t init....')def sayHi(self, a1, a2):print('sayHi..', a1, a2)def test_cpp_obj_return_py_obj():return pyclass_t()def test_cpp_obj_return_py_lambda():def test_lambda(a1):print('test_lambda....', a1)return test_lambda
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。