python --subprocess获取返回值

import subprocess
response = subprocess.Popen(cmd, stdout=subprocess.PIPE, encoding='gb2312')
response1 = response.stdout.read()
logger.debug(f'返回值为:【{response1}】')

你可能感兴趣的:(python,前端,javascript)