-C 代码:*str = @"Hello,World";
Objective-C 代码:
NSString *str = @"Hello,World";
NSArray *arr = [str componentsSeparatedByString:@","];
Swift 代码:
let str = "Hello,World"
let arr = str.components(separatedBy: ",")
本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处
评论列表(65条)