阅读帮助:
Execute the command (a string) in a subshell.
Run Code Online (Sandbox Code Playgroud)
启动一个子shell,并exit在该子shell中运行。
要退出封闭终端,您必须杀死父级。一种方法是:
os.system("kill -9 %d"%(os.getppid())
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10020 次 |
| 最近记录: |