def stop_qsdk_service(xxx, xxx, xxx):
	"""
	"""

def start_qsdk_service(xxx, xxx, xxx):
	"""
	"""

def update_qsdk_service(xxx, xxx, xxx):
	"""
	"""

if __name__ == "__main__":
    # 不再通过if elif,而是通过这种方式来对不同的操作类型做出不同的反应
    opt_type = sys.argv[1]
    choices = {"stop": stop_qsdk_service, "start": start_qsdk_service, "update": update_qsdk_service}
    action = choices.get(opt_type)
    if action:
        action(xxx, xxx, xxx)
    else:
        print(f"not vaild {opt_type}")
        exit(400)