How to get class Object using class variable?

前端 未结 0 357
遇见更好的自我
遇见更好的自我 2020-12-16 23:58

Is it possible to get \'wooden_sword\' object using id variable in \'Item\' Class?

class Item:
    __ids = count(0)

    def __init__(self):
        self.id =         


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