1

是否有替代方法:Write-Host "" 在 powershell 中返回回车?

4

2 回答 2

4

其他选项:

 write-host

 $host.UI.WriteLine()

 [console]::WriteLine() # this also  in ISE v3.0

字符串内部:

"Firts line`r`n`r`nThird Line"
于 2012-12-09T20:40:21.837 回答
0

也许也是一个选择:

Write-Host "Line1"
"" #Line2
Write-Host "Line3"
于 2012-12-09T20:49:06.877 回答