python信号的使用 import signaldef sigint_handler(signum,frame): print "In signal SIGINT handler"signal.signal(signal.SIGINT,sigint_handler)for x in range(10000): print x python/php/perl 2024-09-03 217 点赞 3 评论 328 浏览