在開發運維指令碼過程中,經常需要執行一些作業系統命令,常用方法如下:1、使用os.system>>> import os>>> cmd = 'ls /'>>> res = os.system(cmd)bin ...
確定! 回上一頁