本帖最后由 netdzb 于 2021-5-27 23:16 编辑
test.csv的内容如下,
U1,U2,U3,U4
28,39,0,0
31,57,0,0
30,39,0,0
31,62,0,0
29,40,0,0
30,38,0,0
30,39,0,0
27,39,0,0
31,40,0,0
Import-Csv test.csv | ForEach-Object {
Write-Host "$($_.U1),$($_.U2),$($_.U3),$($_.U4)"
}
运行的结果是
28,39,0,
31,57,0,
30,39,0,
31,62,0,
29,40,0,
30,38,0,
30,39,0,
27,39,0,
31,40,0,
========================
测试环境是win7的powershell 4.0,到底是什么问题啊? |