Using one class to return different objects based on __init__() in Python?

前端 未结 0 816
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 21:19

I have to deal with two formats, say A and B. I want to build a class that handles these two formats in the best way possible in Python.

My idea was to have a class t

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