python元组的符号
时间: 2023-10-19 20:33:23 浏览: 161
使用元组输出-opengl es 3.1 spec
Python的元组使用括号(())来声明。括号是用来表示元组的边界符号,通过括号将元组的元素包裹在一起。与列表使用方括号([])不同,元组的元素不能修改,是一个不可变的数据结构。括号中的元素可以使用逗号(,)隔开。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Python中声明只包含一个元素的元组数据方法](https://download.csdn.net/download/weixin_38727062/14862844)[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_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Python基础——元组](https://blog.csdn.net/weixin_44162361/article/details/125067266)[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_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Python基础数据类型——tuple浅析](https://blog.csdn.net/pdcfighting/article/details/109068039)[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_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文