Skip to main content
 首页 » 编程设计

python之从脚本中终止 android ASE shell

2025年05月04日10txw1958

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

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

但无济于事。

请您参考如下方法:

你应该使用 android.exit()。