import os
f = os.popen(r"Py2Cpp.exe {0} {1}".format('5', 'x^^2+2x+1'), "r")
d = f.readlines( )
print(d)
f.close( )
import subprocess
import os
main = r"Py2Cpp.exe"
if os.path.exists(main):
rc,out= subprocess.getstatusoutput(r"Py2Cpp.exe {0} {1}".format('5', 'x^^2+2x+1'))
print (rc)
print (out)
import os
r_v = os.system(r"Py2Cpp.exe {0} {1}".format('5', 'x^^2+2x+1'))
import win32api
win32api.ShellExecute(0, 'open', r"D:\zonghe.exe", '', '', 1)
win32api.ShellExecute(0, 'open', '1.txt', '', '', 1)
win32api.ShellExecute(0, 'open', 'http://www.sohu.com', '', '', 1)
win32api.ShellExecute(0, 'open', 'hello.py', '', '', 1)