python 寫 組合兩兩組合

緊挨着 組合  a b c d  ----> ab ,bc ,cd html portList = ['a', 'b', 'c', 'd'] for i, p in enumerate(portList): if i == len(portList) - 1: break # p, portList[i + 1] print p print
相關文章
相關標籤/搜索