| 12345678910111213141516 |
- class command:
- def __init__(self):
- self.command_list = [
- {"number": 1, "text": "帮我填好导航"},
- ]
- # 根据用户输入返回对应的命令编号
- def get_command(self, userMsg):
- for cmd in self.command_list:
- if cmd["text"] in userMsg:
- return cmd["number"]
- return 0
- commandObj = command()
-
|