let firstL = s.characters.indexOf("l") // Optional(2)
所有的
Swift
索引都是从数字
0
开始的,因此
2
表示第 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.