Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有替代方法:Write-Host "" 在 powershell 中返回回车?
其他选项:
write-host $host.UI.WriteLine() [console]::WriteLine() # this also in ISE v3.0
字符串内部:
"Firts line`r`n`r`nThird Line"
也许也是一个选择:
Write-Host "Line1" "" #Line2 Write-Host "Line3"