python的signal模块提供机制由于signal handlers。使用signals和它们的handlers有以下准则: 转载于:https://blog.51cto.com/john88wang/1840382