Count属性(行数 @)时间:2023-03-08 22:03:08 在PS2.0中,如果返回值为空,则count也会返回空(vm.txt内容为空),如下: (gc d:\vm.txt).count 如果加上@的话,会返回0 @(gc d:\vm.txt).count 在PS3.0中,即使内容为空,count也会返回0 ==================================== 判断$ip是否为数组$ip is [array] Format-Table -AutoSizeFormat-Table -wrap