更新时间:2023-12-05 13:52:04
这篇文章给出了一些从 Python 运行 Ruby 代码的技术也应该适用于反向(例如 XML-RPC 或管道),以及从 Ruby 运行 Python 代码的特定技术.特别是 rubypython 或 Ruby/Python 看起来他们可以做你想做的事.
This article gives some techniques for running Ruby code from Python which should also be applicable in the reverse direction (such as XML-RPC or pipes) as well as specific techniques for running Python code from Ruby. In particular rubypython or Ruby/Python look like they may do what you want.