Call a Python file in a SML program?

2019-08-26 01:23发布

问题:

I was wondering if it is possible to call a python file in an SML program, and if so how can you do it? I have tried researching how to do this, but have only found documentation on how to call other SML files.

回答1:

I think OS.Process.system "python myscript.py" should work. See: http://sml-family.org/Basis/os-process.html