結果 : how to interrupt a function in python