好的,我有一些需要使用 PowerShell 组合的哈希表。以下是格式示例:
$table1 = @{"A" = "1,2";
"B" = "3,4";
"C" = "5,6"}
$table2 = @{"A" = "3";
"B" = "5";
"C" = "7"}
我需要合并这些表以创建下表:
$newTable = @{"A" = "1,2,3";
"B" = "3,4,5";
"C" = "5,6,7"}
基本上,需要比较键和值。如果值不同,则需要将它们相加。谢谢!