比如我現在有一個變量date=‘2018’,我想用subprocess執行如下一個linux命令,比如touch date.txt,即touch 2018.txt,這個該如何實現?
如何在subprocess要執行的命令中傳入變量?
慕婉清6462132
2018-07-22 07:50:58