String and Characters
最后更新于:2022-04-01 02:47:41
## String and Characters
Swift’s String type is a value type. If you create a new String value, that String value is copied when it is passed to a function or method, or when it is assigned to a constant or variable.
String判断是否包含某前缀或后缀的方法:hasPrefix,hasSuffix
String怎么随机取其中一个字符?