python 日常小技巧
python 访问win32程序和指定地址程序
1 import subprocess 2 p=subprocess.Popen("calc.exe",0,None,None,None,None) 3 p.wait() 4 p=subprocess.Popen("D:\Program Files\Tencent\QQ\Bin\QQ.exe",0,None,None,None,None) 5 p.wait() 6 7 import os 8 os.system("notepad") 9 os.system("c:\\test.txt")