gpt4 book ai didi

powershell - PowerShell 中的特殊字符 "!"是什么意思?

转载 作者:行者123 更新时间:2023-12-04 13:27:23 29 4
gpt4 key购买 nike

特殊字符是什么!在 PowerShell 中是什么意思?

或者列出所有特殊字符和含义的站点。
例子:

$string = blah
!$String

(返回 $false)

最佳答案

PowerShell 使用 !字符作为逻辑 -not 的别名运算符(operator):

$true
!$true
$false
!$false

True
False
False
True

关于powershell - PowerShell 中的特殊字符 "!"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20828196/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com