Try this outcome = [] lst = {1,2,3,...,50} lstLen = range(0, len(lst), 5) for a in range(len(lst)): outcome.append(lstLen[a%10]) ...
確定! 回上一頁