可能重複:
Know any creative ways to interface Python with Tcl?如何在Python中運行TCL腳本?
在Python中,我需要把一些值輸入到TCL腳本,讓它運行,然後使用它的輸出。 我應該怎麼做?
感謝
可能重複:
Know any creative ways to interface Python with Tcl?如何在Python中運行TCL腳本?
在Python中,我需要把一些值輸入到TCL腳本,讓它運行,然後使用它的輸出。 我應該怎麼做?
感謝
您可以使用subprocess Python模塊做到這一點。
嘗試在此頁面上的解決方案,它應該做你所需要的。 http://stackoverflow.com/questions/1004434/know-any-creative-ways-to-interface-python-with-tcl – 2013-01-03 21:42:18
謝謝,我已經看到:) – Sonic