aList = ["a", "c", "e", "g"] bList = ["b", "d", "f", "h", "i", "j"] n1 = len(aList) n2 = len(bList) combo = [] for i in range(0, n1): combo += [aList, bList] if n2 > n1: combo += bList[n1:n2] print combo
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.