I'm using android scripting environment with python (ASE), and I'd like to terminate the shell executing the script when the script terminates. Is there a good way to do this?
I have tried executing on the last line: os.system( 'kill %d' % os.getppid() )
but to no avail.
您应该使用android.exit()
。
我的猜测是上述答案应该是android.Android().exit()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.