結果 : how to write get method in python