方法一: 1 $str = "abcd" 2 $s2 = $str.GetEnumerator() #$s2是无法使用下标的方式进行索引的,因为其不是array .GetEnum 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交