2 Answers
学到了,太谢谢了
分享下自己最后的方式
Start your code here
PS C:\Users\Administrator> filter Split-UpperChars
>> {
>> param( [Parameter(Mandatory=$true,ValueFromPipeline=$true)][string]$str)
>> $offset=0;$s=$str
>> 1..$str.length|%{
>> if($str[$_] -cmatch "[A-Z]"){
>> $s=$s.Insert(($_+$offset),' ')
>> $offset+=1}};return $s
>> }
PS C:\Users\Administrator> $a|Split-UpperChars
Client To Window
Exec W B
Get Property
Go Back
Go Forward
Go Home
Go Search
Navigate
Navigate2
Put Property
Query Status W B
Quit
Refresh
Refresh2
Show Browser Bar