結果 : how to close a function python