最佳答案
我如何使用列表内涵从一个列表中构建一个由2个元组组成的元组
tup = ()
for element in alist:
tup = tup + ((element.foo, element.bar),)