結果 : how to close a function in python