小编Mat*_*att的帖子

Powershell脚本用于汇总字符串中的每个字符

寻找一种方法来总结字符串中的所有唯一字符,所以如果字符串是:

!#*@&$&$&@^$*%(%&#
Run Code Online (Sandbox Code Playgroud)

该脚本将输出

1 ! found

2 # found

2 * found

2 @ found

4 & found

3 $ found

1 ^ found
Run Code Online (Sandbox Code Playgroud)

等等..

我找到了很多操纵字符串的方法,但不是这个.任何帮助都会统治!谢谢

string powershell parsing character

-1
推荐指数
1
解决办法
5971
查看次数

标签 统计

character ×1

parsing ×1

powershell ×1

string ×1