比如說定義一個String str = {adasdasreasda},我想找出所有‘a(chǎn)’的索引,并且在后面插入一個逗號‘,’?
怎么樣在一個不規(guī)則的字符串中提取特定字符的所有位置的索引?
你已走遠(yuǎn)
2016-09-16 12:23:44