简体   繁体   English

写主机“” - 替代

[英]Write-Host “” - Alternative

是否有替代:Write-Host“”在powershell中返回运输?

Other options: 其他选择:

 write-host

 $host.UI.WriteLine()

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

Inside a string: 在字符串内:

"Firts line`r`n`r`nThird Line"

Maybe also a option: 也许还有一个选择:

Write-Host "Line1"
"" #Line2
Write-Host "Line3"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM