最赞回答 / 括号扯蛋侠
var str = "Hello, playground"str.characters.countfor c in str.characters{ print(c)}
2015-04-25
最新回答 / 丿心梦无痕
//换行var str = "你好,playground"var stra = "你sss好,playground"var see = "\(str)\n\(stra)"print(see)//查找一个字符串在一个字符串中的位置范围var stringTest = "andy Wangpeng"stringTest.rangeOfString("Wangpeng")stringTest.rangeOfString("Wangpeng",options: NSStringCompareOptions.Cas...
2015-04-06