subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: # 尝试直接调用 subprocess.Popen([editor_path, file_path], shell=True) print(f"✅ 已用 {editor_name} 打开") except Exception as e: # fallback 到系统默认- Confidence
- 98% confidence
- Finding
- subprocess.Popen([editor_path, file_path], shell=True)
