我知道使用单引号而不是双引号之间的区别在于变量不会扩展.
$a = "hello" "$a world" # hello world '$a world' # $a world
我习惯使用双引号,但我猜单引号可能更有效率.这总是如此吗?是否有关于此主题的文档?我用Google搜索了一下,但结果却因扩展变量的解释而不堪重负
powershell performance
performance ×1
powershell ×1