【问题标题】:Terminating android ASE shell from within the script从脚本中终止 android ASE shell
【发布时间】:2011-03-08 16:59:25
【问题描述】:

我正在使用带有 python (ASE) 的 android 脚本环境,并且我想在脚本终止时终止执行脚本的 shell。 有什么好办法吗?

我尝试在最后一行执行: os.system('kill %d' % os.getppid())

但无济于事。

【问题讨论】:

    标签: python android ase


    【解决方案1】:

    你应该使用android.exit()

    【讨论】:

      【解决方案2】:

      我猜上面的答案应该是android.Android().exit()

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-03-18
        • 1970-01-01
        • 2016-09-29
        • 2021-08-22
        • 2010-12-11
        • 2021-11-08
        • 1970-01-01
        • 2010-09-24
        相关资源
        最近更新 更多