-1
A
回答
1
@()
是数组运算符,它可以确保即使一个项(或零)被返回作为数组。
阵列子表达式OPERATOR
阵列子表达式运算符创建一个数组,即使它 包含零或一个对象。
The syntax of the array operator is as follows: @(...) You can use the array operator to create an array of zero or one object. PS C:\>$a = @("One") PS C:\>$a.Count 1 PS C:\>$b = @() PS C:\>$b.Count 0
来源:about_Arrays
相关问题
- 1. 不能在PowerShell中使用'Microsoft.TeamFoundationServer.ExtendedClient'在PowerShell中使用TFS 2015 RestApi
- 2. 使用PowerShell中
- 3. 在使用PowerShell
- 4. 在使用PowerShell
- 5. 在Powershell中使用ffmpeg
- 6. 在PowerShell中使用OpenCV
- 7. 在PowerShell中使用Task类
- 8. 在PowerShell中使用DotNetZip
- 9. 在PowerShell中使用MetroMessageBox
- 10. 在PowerShell中使用-Confirm
- 11. 在Powershell中使用JavascriptExecutor
- 12. 在Powershell中使用FFMPEG
- 13. 在powershell中使用system.thread.threadpool
- 14. 在PowerShell中使用日期
- 15. 使用PowerShell在Azure中
- 16. 在PowerShell中使用JScript
- 17. 使用与在PowerShell中
- 18. 在Powershell中使用作业
- 19. 在PowerShell中使用Robocopy 5
- 20. 在表格中使用Powershell
- 21. 使用PowerShell调用Visual Build时在PowerShell中获取$ LastExitCode
- 22. 在PowerShell中使用-contains不起作用
- 23. 使用powershell在sitecore中创建用户
- 24. 选择在使用XPath在PowerShell中
- 25. 如何在使用'使用PowerShell运行'执行PowerShell脚本时在另一个PowerShell脚本中调用函数
- 26. 如何在Powershell命令中使用Powershell表达式?
- 27. Powershell:在html格式化中使用powershell命令
- 28. 如何在企业中使用PowerShell和PowerShell模块
- 29. 在Powershell脚本中使用XML
- 30. 异常而在PowerShell中使用的LoadFile()