zsh 操作符 $= 在空白边界处拆分单词。
The zsh operator, $=, splits words at whitespace boundaries.
需要遍历该列表,将每个单词拆分为经过排序的字母数组,然后再次合并数组。
You want to iterate through the list, breaking each word into a sorted array of letters, then joining the array again.
若要 tokenize(也就是说,将一行拆分为单词长度的片段)某个字符串,请使用 split() 函数。
To tokenize (that is, split a line into word-length pieces) a string, use the split() function.
应用推荐