可以使用Python解包,例如:
val = {
"list1": [1, 2, 3],
"list2": [2, 3, 4],
"list3": [3, 4, 5],
}
a,b,c = val.get('list2')
print(a,b,c)
輸出:?2 3 4