2
獲得給定字符串文本的所有字符位置的最佳方式是什麼?獲取位於文本中的給定短語的所有字符索引的最佳方法
例如,假設我們有"the red cat is watching the red car stopped at the red stop sign"
輸入: 「紅色」 OUTPUT:5,29,52]
獲得給定字符串文本的所有字符位置的最佳方式是什麼?獲取位於文本中的給定短語的所有字符索引的最佳方法
例如,假設我們有"the red cat is watching the red car stopped at the red stop sign"
輸入: 「紅色」 OUTPUT:5,29,52]
感謝您幫助我找到丟失的針頭! ;-) – SliverNinja