StackOverflow 文档 D Language 教程 关联数组 添加键值对 添加键值对 Created: November-22, 2018 int[string] aa = ["x": 5, "y": 6]; // The value can be set by its key: aa["x"] = 7; assert(aa["x"] == 7); // if the key does not exist will be added aa["z"] = 8; assert(aa["z"] == 8); 删除键值对字面