📜  powershell while 循环 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:52.611000             🧑  作者: Mango

代码示例2
> $array = @("item1", "item2", "item3")
$counter = 0;

do {
   $array[$counter]
   $counter += 1
} while($counter -lt $array.length)
 
item1
item2
item3