swift-计算字符串长度

text.characters.count(记得text一定要是String类型)

原文地址:https://www.cnblogs.com/brance/p/4898905.html