看代码注释和结构 import sys commands = [['reset'],['reset','board'],['board','add'],['board','delete'],['reboot','backplane'],['backplane','abort']]#用列表存储存储命令符,也可以不存储,直接dic.keys() dic = {'reset':'reset what','reset board':'board fault','board add':'where to add','board delete':'no board at all','reboot back...