参考博客:http://www.cnblogs.com/21207-iHome/p/6085334.html 代码实现:https://gitee.com/zhao-shu-bo/czsf/blob/master/python模拟进程状态 代码截图: