結果 : implementing the factory method pattern in python