StringDrop
Usage
• StringDrop["string", n] 返回前n个字符被删除后的 "string".
• StringDrop["string", -n] 返回后n个字符被删除后的 "string".
• StringDrop["string", n ] 返回第 n个字符被删除后的 "string".
• StringDrop["string", m, n ] 返回从 m到 n的字符被删除后的 "string".
Notes
• StringDrop 使用标准 序列指定(参见 A.3.5节). • 例如: StringDrop["abcdefgh", 2]  . • StringDrop["string", m, n, s ] 以步长 s删除从 m到 n的字符.
Further Examples
This deletes the first characters from this string.
In[1]:=
|
Out[1]=
|
This deletes the last characters.
In[2]:=
|
Out[2]=
|
This deletes the character at position .
In[3]:=
|
Out[3]=
|
This deletes characters through .
In[4]:=
|
Out[4]=
|
This deletes characters through in steps of .
In[5]:=
|
Out[5]=
|
|