擅长:python、mysql、java
<p>Python 3.5的新特性,您还可以使用<a href="https://docs.python.org/3/library/subprocess.html#subprocess.run" rel="nofollow">^{<cd1>}</a>。</p>
<pre><code>subprocess.run(['aws', 's3', 'ls', 's3://path/to/my/bucket/12434', '--recursive', '--human-readable', '--summarize'])
</code></pre>