Can @property behave like a dictionary with caching?

后端 未结 0 1383
灰色年华
灰色年华 2021-02-05 19:14

I am trying to let a class Foo have a @property named bars that behaves like a Python Dictionary where we can access the values in b

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