[Python]以字串String搜尋清單List方法 · li=['ABCD','>DEFG','GHIJ'] · b = [i for i in li if 'ABC' in i] · print(b,'location:',li.index(b[0])). > ...
確定! 回上一頁