ܣִⲿ

ʽ
[s,n]=RunCommand(obj,arg,wait)
[s,n]=RunCommand(obj,arg)
[s,n]=RunCommand(obj)

objű洢ⲿִг·Ϊճ򽫴ѡ·Ի
argַ洢ִĬΪգעж洢ÿһֵм
wait: Ϊ0ʾȴóִнأΪ1ʾȴó֮󱾳ٷءĬΪ1.

sű洢ķؽ.ִгɹִгɹݣִʧܣʧʾ.
nִгɹ־Ϊ1ʾִгɹ0ʾִʧ

:
//ҵװpythonΪ,ȻȻִһpythonļ,ļΪprint(4*2.36*(3.25*2.5/(2+3.6)))
f = "C:\Python27\python.exe"
c = "D:\2.txt"
s = "print(4*2.36*(3.25*2.5/(2+3.6)))"
WriteText(c,s)

[res,n]=RunCommand(f,c) //ִ4,Ȼسõ½
res = "13.6964285714"
n =
[ 1.00000000000000 ]