結果 : how to exit two loops in python