我想删除文件中的所有*.ts.os.remove没用.
os.remove
这并没有扩大 *
*
>>> args = ['rm', '*.ts'] >>> p = subprocess.call(args) rm: *.ts No such file or directory
python linux shell subprocess
linux ×1
python ×1
shell ×1
subprocess ×1