在SML程序中调用Python文件? [英] Call a Python file in a SML program?
本文介绍了在SML程序中调用Python文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否可以在SML程序中调用python文件,如果可以,该怎么办?我已经尝试研究如何执行此操作,但是只找到了有关如何调用其他SML文件的文档。
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.
推荐答案
我认为 OS.Process.system python myscript.py
应该可以工作。请参阅: http://sml-family.org/Basis/os-process.html
I think OS.Process.system "python myscript.py"
should work. See: http://sml-family.org/Basis/os-process.html
这篇关于在SML程序中调用Python文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文