# 深拷贝来解决获取对象参数改变,列表内容同时改变的情况 result = solving_engine.get_solving_result() for key, value in result.items(): if value != [] and value != ""and value != {}: print(key, value)
def_check(self, transitors: List[str]) -> None: """ Executes the transit check, checking whether all transitors have been defined. :param transitors: :raises AssertionError: If operation has no predecessors. """ functions = [ fn_name for fn_name, _ in inspect.getmembers( APTextToSceneCombination, predicate=inspect.isfunction ) ] for t in transitors: if t notin functions: raise ValueError("transitors %s has not defined".format(t))
def_check(self, transitors: List[str]) -> None: """ Executes the transit check, checking whether all transitors have been defined. :param transitors: :raises AssertionError: If operation has no predecessors. """ functions = [ fn_name for fn_name, _ in inspect.getmembers( SceneCombinationToOutputSolution, predicate=inspect.isfunction ) ] for t in transitors: if t notin functions: raise ValueError("transitors %s has not defined".format(t))