我有一个带有以下代码的python脚本:
print("Hello Deno")
Run Code Online (Sandbox Code Playgroud)
我想使用 Deno 从 test.ts 运行这个 python 脚本(test.py)。到目前为止,这是 test.ts 中的代码:
const cmd = Deno.run({cmd: ["python3", "test.py"]});
Run Code Online (Sandbox Code Playgroud)
如何在 Deno 中获取 python 脚本的输出?