多进程并行,Go的话可以用 os/exec 包来调用外部 Python 脚本。Rust的话可以用 std::process::Command 来调用外部 Python 脚本。 Go 或者 Rust 要和 Python 进程通信,用进程间通信 (IPC) 方法就行。
阅读量:1
点赞量:0