Python模塊subprocess

Python中可以執行shell命令的相關模塊和函數有: os.system os.spawn* os.popen*          --廢棄 popen2.*           --廢棄 commands.*      --廢棄,3.x中被移除 import commands result = commands.getoutput('cmd') result = commands.gets
相關文章
相關標籤/搜索