嵌套哈希表对于多维数组是一个更好选择。这种存储方式将更易于管理。请看: 代码如下: $person = @{} $person.Name = ‘Weltner’ $person.Id = 12 $person.Address = @{} $person.Address.Street = ‘Canyon Rim’ $person.Address.City = ‘Folsom’ $person.Address.Details = @{} $person.Address.Details.Story = 4 $person.Address.Details.ScenicView = $false 也可