主页
Python
Python subprocess 模块
demo_ref_module_subprocess_basic
运行 ❯
×
更改方向
保存代码
更改主题
import subprocess result = subprocess.run(['echo', 'Hello from Emil'], capture_output=True, text=True) print(result.stdout)
Hello from Emil