看板
[ Python ]
討論串[問題] 找出sublist在list中出現過的位置
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
#練習寫寫看. def indices(text, string):. result = []. ind = text.find(string). nextfind = ind + 1. while nextfind:. result.append(ind). text = text[nextfin
(還有434個字)
首頁
上一頁
1
下一頁
尾頁