且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 PowerShell 中连接字符串和变量?

更新时间:2023-02-03 09:56:29

Write-Host "$($assoc.Id) - $($assoc.Name) - $($assoc.Owner)"

请参阅 Windows PowerShell 语言规范版本 3.0,p34,子表达式扩展.

See the Windows PowerShell Language Specification Version 3.0, p34, sub-expressions expansion.