PowerShell 可以非常优雅地处理此问题,例如: > $str1 = $null > if ($str1) { 'not empty' } else { 'empty' } empty > $str2 = '' > if ($str2) { 'not empty' } ...
確定! 回上一頁