比如我現在有一個變量date=‘2018’,我想用subprocess執行如下一個linux命令,比如touch date.txt,即touch 2018.txt,這個該如何實現?
如何在subprocess要執行的命令中傳入變量?
海綿寶寶撒
2018-07-10 15:22:45