更新时间:2023-11-23 21:07:34
python中的字典有什么问题-创建然后访问它们:
what is wrong with dictionaries in python - to create and then access them :
structure = {}
structure["parent1"] = {}
structure["parent1"]["variable1"] = 23;
structure["parent1"]["variable2"] = 19;
structure["parent1"]["variable3"] = 19;
structure["parent2"] = {}
structure["parent2"]["variable1"] = 10;
structure["parent2"]["variable2"] = 11;