execute static method
Future<void>
execute({
- required String code,
- List<
(String, PyArgument)> ? globals, - 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);