結果 : python stop function if takes too long