python import envoy response = envoy.run('ls -l') print(response.std_out) python import envoy response = envoy.run(['git', 'clone', 'https://github.com/example/repo.git'], cwd='/path/to/dir') python import envoy response = envoy.run('echo "Hello, World!"') python import envoy def callback(result): print(result.std_out) envoy.run_async('ls -l', callback) python import envoy envoy.use_shell = True envoy.encoding = 'utf-8' response = envoy.run('ls -l')


上一篇:
下一篇:
切换中文