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
相关文章
相关标签/搜索