execute static method

Future<void> execute({
  1. required String code,
  2. List<(String, PyArgument)>? globals,
  3. List<(String, PyArgument)>? locals,
})

执行 Python 代码片段(无返回值) 适用于 import, class 定义, def 函数定义等

Implementation

static Future<void> execute(
        {required String code,
        List<(String, PyArgument)>? globals,
        List<(String, PyArgument)>? locals}) =>
    RustLib.instance.api.crateApiPythonPythonUtilityExecute(
        code: code, globals: globals, locals: locals);