import subprocess
result = subprocess.run(['tasklist', '/FI', 'IMAGENAME eq chrome.exe', '/FO', 'CSV'],
                       capture_output=True, encoding='gbk', errors='replace')
print(result.stdout)
