小编ycy*_*ang的帖子

如何从PowerShell中的哈希表数组中获取唯一值?

如何从PowerShell中的哈希表数组中获取唯一值?

$h1 = @{a=1;b=2};
$h2 = @{a=3;b=4};
$h3 = @{a=1;b=2};

$h = $h1,$h2,$h3
Run Code Online (Sandbox Code Playgroud)

我想从$ h中删除重复值($ h1或$ h3).

谢谢!

powershell

4
推荐指数
1
解决办法
3525
查看次数

标签 统计

powershell ×1