string[] tokens = str.Split(new[] { "is Marco and" }, StringSplitOptions.None);如果您有一个字符定界符(例如例如
,),则可以将其减少为(请注意单引号):
string[] tokens = str.Split(',');
string[] tokens = str.Split(new[] { "is Marco and" }, StringSplitOptions.None);如果您有一个字符定界符(例如例如
,),则可以将其减少为(请注意单引号):
string[] tokens = str.Split(',');