The second split method demonstrates using a different token character -- in this case, a colon -- to split a string into a sequence of strings.
第二个split方法演示如何使用不同的令牌字符(本例中使用的是冒号)将一个字符串分成一系列字符串。
The split method is useful because it splits a string into a sequence of smaller strings, using a token character (or any character in a given sequence of characters) as an indicator of where to chop.
split方法很有用,因为它可以将一个字符串分成几个较小的字符串序列,方法是将令牌字符(或给定字符序列中的任何字符)用作断开位置的指示器。
The split method is useful because it splits a string into a sequence of smaller strings, using a token character (or any character in a given sequence of characters) as an indicator of where to chop.
split方法很有用,因为它可以将一个字符串分成几个较小的字符串序列,方法是将令牌字符(或给定字符序列中的任何字符)用作断开位置的指示器。
应用推荐