temp = [args[number][index] for index in range(min_col) for number in range(col_counter)]
result = [[temp[index + step] for index in range(col_counter)] for step in range(0, len(temp), col_counter)]
def zip_super(*args):
args = [list(item) for item in args]
min_col = len(min(args, key=len))
col_counter = len(args)
temp = [args[number][index] for index in range(min_col) for number in range(col_counter)]
result = [[temp[index + step] for index in range(col_counter)] for step in range(0, len(temp), col_counter)]
return result
zipped = zip_super('asdf', [1, 2, 3], 'lkjhg', {5, 6, 7, 8}, {'a': 0, 'b': 1, 'c': 2})
# print(zipped)
for z in zipped:
print(z)
remote: GitLab: You are not allowed to force push code to a protected branch on this project.
To https://gitlab.site.ru/nihi1ist/Python_Basic.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://gitlab.site.ru/nihi1ist/Python_Basic.git'
git reset --hard 0821842
On branch master
Your branch is behind 'Python_Basic/master' by 2 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Revert currently in progress.
(run "git revert --continue" to continue)
(use "git revert --skip" to skip this patch)
(use "git revert --abort" to cancel the revert operation)
nothing to commit, working tree clean
В принципе работает.