小编Jam*_*han的帖子

PowerShell中是否有一种方法可以截断字符串而不会缩短字

我一直在环顾四周,一直找不到任何东西.我想截断一个字符串,而不是简短地说.就像一段摘录.

$string = "This is my string"

9 = "This is m"
Run Code Online (Sandbox Code Playgroud)

理想情况下 "This is my"

powershell

2
推荐指数
1
解决办法
5852
查看次数

标签 统计

powershell ×1