Factoy pattern in python - Separate class or function wrapped?

后端 未结 0 1468
孤城傲影
孤城傲影 2021-02-06 05:23

I think to have a use case for the factory pattern method in python and have two ideas how to implement it (see below). Both work, but are they really the same? Option2 looks mu

相关标签:
回答
  • 消灭零回复
提交回复
热议问题