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
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.