Powershell-For循环

下面的脚本演示了Powershell中的for循环。

> $array = @("item1", "item2", "item3")
 
> for($i = 0; $i -lt $array.length; $i++){ $array[$i] }
item1
item2
item3
日期:2019-08-20 13:51:11 来源:oir作者:oir