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 41 点赞 0 评论 62 浏览