你怎么得到一个长度String?例如,我有一个变量定义如下:
String
var test1: String = "Scott"
但是,我似乎无法在字符串上找到长度方法.
string swift
string ×1
swift ×1