我正在使用带有 python (ASE) 的 android 脚本环境,我想在脚本终止时终止执行脚本的 shell。 有什么好的方法吗?
我试过在最后一行执行: os.system( 'kill %d' % os.getppid() )
但无济于事。
最佳答案
你应该使用 android.exit()
。
关于python - 从脚本中终止 android ASE shell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3125325/