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 266 点赞 4 评论 403 浏览