Use a dictionary inside a class keyed with string to trigger a method within the class

前端 未结 0 1320
醉话见心
醉话见心 2020-12-09 10:40

class Move(object):

 def forward(): 


 def right():         
 

 def select_direction(self, direction):
     my_dicionary(direction) {
         "forward         


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