擅长:python、mysql、java
<p>为此,请使用<code>monkeyrunner</code>工具。从它的<a href="https://developer.android.com/studio/test/monkeyrunner/index.html" rel="nofollow noreferrer">documentation</a>:</p>
<blockquote>
<p>Besides using the monkeyrunner API itself, you can use the standard Python os and subprocess modules to call Android tools such as Android Debug Bridge.</p>
</blockquote>