-4
在Python我有這種表情的對付那種語法:我不明白,使用字典
alg_error = self.__rec_data[seedict][scanner][CALCULATE][CALCULATE_VALUE]
或
alg_error = self.__rec_data[seedict][scanner][CALCULATE][CALCULATE_VALUE]
alg_comp = self.__rec_data[pers][dict1][DATA][DATA_DICT]
我完全不明白這多個字典表達總之,它是如何工作的,如果我分配例如
algo_dem_error_path_comp = self.__rec_file_data[pers][scan][DATA][DATA_ERR_PATH_COMP] = "value : 5 "
的值會在哪裏5去?
在Python字典上尋找一些基本的東西http://stackoverflow.com/questions/16333296/how-do-you-create-nested-dict-in-python – ZdaR