摘要: strings方法 index 判断子字符串或字符在父字符串中出现的位置(索引)Index 返回字符串 str 在字符串 s 中的索引( str 的第一个字符的索引),-1 表示字符串 s 不包含字符串 str :strings.Index(s, str string) int LastIndex 阅读全文
posted @ 2020-02-05 10:52 方诚 阅读(191) 评论(0) 推荐(0) 编辑