StackOverflow 文档 D Language 教程 关联数组 字面 字面 Created: November-22, 2018 int[string] aa0 = ["x": 5, "y": 6]; //int values, string keys auto aa1 = ["x": 5.0, "y": 6.0]; // double values, string keys string[int] aa2 = [10: "A", 11: "B"]; //string values, int keys 添加键值对标准使用