大佬们,下面这小段,有什么简写吗,已被自己蠢哭
# python3
A_one, A_other_one, A_two, A_other_two = A
B_one, B_other_one, B_two, B_other_two = B
... # 会有很多
all = [
[{ "A_one": A_one, "B_one": B_one },
{ "A_other": A_other_one, "B_other": B_other_one }
],
[{ "A_one": A_two, "B_one": B_two },
{ "A_other": A_other_two, "B_other": B_other_two }
]
]