可能性の重複:
Python: Once and for all. What does the Star operator mean in Python?Pythonでは、* zip(list1、list2)はどんなタイプのオブジェクトを返しますか?
x = [1, 2, 3]
y = [4, 5, 6]
zipped = zip(x, y)
list(zipped)
x2, y2 = zip(*zip(x, y))
x == list(x2) and y == list(y2)
*zip(x, y)
リターンを行い、物体のどのタイプ?理由
res = *zip(x, y)
print(res)
は動作しません。
2番目の例は、「オブジェクトを返す」ため、機能しません。 –