[英]Terminating android ASE shell from within the script
我正在使用帶有python(ASE)的android腳本環境,並且我想在腳本終止時終止執行該腳本的shell。 有什么好方法嗎?
我嘗試在最后一行執行:os.system('kill%d'%os.getppid())
但無濟於事。
您應該使用android.exit()
。
我的猜測是上述答案應該是android.Android().exit()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.