結果 : how to write class method in python