python工厂模式代码 翻译自: https://www.pybloggers.com/2016/02/python-design-patterns-for-sleek-and-fashionable-code/ python工厂模式代码