📜  powershell for loop - Shell-Bash 代码示例

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

代码示例2
> $array = @("item1", "item2", "item3")
 
> foreach ($element in $array) { $element }
item1
item2
item3
 
> $array | foreach { $_ }
item1
item2
item3