subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
elif sys.platform == 'linux': subprocess.run(['aplay', output], check=True) elif sys.platform == 'win32': subprocess.run(['start', output], shell=True, check=True) else: print(f"⚠️ 未知平台,无法自动播放:{output}", file=sys.stderr) return False- Confidence
- 98% confidence
- Finding
- subprocess.run(['start', output], shell=True, check=True)
