Swift中String在指定位置插入字符串

api:

str.index(<#T##i: String.Index##String.Index#>, offsetBy: <#T##String.IndexDistance#>)

大致说明一下

str.endIndex 从什么位置开始

offsetBy:偏移多少位,呃..±就代表方向了

 

 

 

每天进步一点点,祭奠我虚度的光阴!

posted @ 2019-09-11 15:23  光小星  阅读(2887)  评论(2编辑  收藏  举报