Initialising static dictionary in class

后端 未结 0 403
走了就别回头了
走了就别回头了 2020-12-05 03:32

I am trying to create a static dictionary which maps from a character to a function in Python like so :

class Foo:
    dict = {\'!\' : Foo.Bar}
    def Bar():         


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