search

Home  >  Q&A  >  body text

python如何分步执行adb命令

我想用python分步调用adb命令,先进adb shell
然后反复的执行其它命令,
对python来说,怎么新建一个这样的地方给我继续输入呢?

PHP中文网PHP中文网2781 days ago767

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:25:31

    Do this when executingimport pdb; pdb.set_trace()

    reply
    0
  • 黄舟

    黄舟2017-04-18 10:25:31

    Do you want to use Python to execute adb and then enter commands?

    What you need is the Pexpect package to complete the interaction with other applications.

    reply
    0
  • Cancelreply