【发布时间】:2013-05-03 21:50:34
【问题描述】:
我有两个元组
("string1","string2","string3","string4","string5","string6","string7")
和
("another string1","another string2",3,None,"another string5",6,7)
我想做这样的事情:
("string1another string1","string2another string2","string33","string4","string5another string5","string66","string77").
这样的结果也可以:
("string1another string1","string2another string2","string33","string4None","string5another string5","string66","string77")
但由于我是 Python 新手,我不确定如何操作。组合这两个元组的最佳方法是什么?
【问题讨论】:
标签: python python-3.x merge tuples