python 设置函数超时
1. 使用timeout-decorator为python函数任务设置超时时间 ,在windows下不可用,源代码调用SIGALRM,在windows下signal受到限制。
"On Windows, signal() can only be called with SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, or SIGTERM. A ValueError will be raised in any other case."
2. kth-timeoutdecorator可兼容windows和linux
 
                    
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号