shell=True运行
/bin/sh不支持此语法。
bash明确指定:
from subprocess import check_callcheck_call('ls src/{t,p}*.cpp', shell=True, executable='/bin/bash')
shell=True运行
/bin/sh不支持此语法。
bash明确指定:
from subprocess import check_callcheck_call('ls src/{t,p}*.cpp', shell=True, executable='/bin/bash')