python元组的加法
时间: 2023-10-15 07:24:40 浏览: 132
Python的元组加法是指将两个元组按顺序连接在一起形成一个新的元组。例如,如果有两个元组tuple1=(1,2,3,4,5,6)和tuple2=(1,2,3),它们的加法操作是将tuple2的元素依次添加到tuple1的末尾,形成一个新的元组。(1, 2, 3, 4, 5, 6, 1, 2, 3) <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Python序列(列表list和元组tuple)用法完全攻略](https://blog.csdn.net/weixin_39944233/article/details/110829740)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [【 python基础数据结构-元组】](https://blog.csdn.net/weixin_45271735/article/details/125889266)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文