1
for ($q = 0; $q -lt 3; $q++) {
    Write-Host $q
}

输出:

1
2

但我希望从 0 开始,因为$q = 0

0
1
2

这是预期的行为还是我错过了一些非常明显的东西?

4

1 回答 1

2

This is a bug in PowerGui version 3.5.0.2293. Updating to the latest version resolves the bug.

于 2013-05-16T13:58:58.357 回答