li=['ABCD','>DEFG','GHIJ'] · b = [i for i in li if 'ABC' in i] · print(b,'location:',li.index(b[0])). > ...
確定! 回上一頁