IOS中怎样把一个字符串倒序输出 NSString * str = @"abcdefg"; NSMutableString * string = [[NSMutableString alloc]initWithCapacity:str.length]; int j = (int)str.length; for (int i = j - 1; i >= 0; i--) { ... swift 2023-10-29 44 点赞 0 评论 66 浏览