string indicates must be integers
时间: 2023-10-17 09:31:15 浏览: 122
引用中提到了一个错误提示信息:"1. list indices must be integers or slices, not tuple",意思是当使用列表进行索引时,索引必须是整数或者是片段,而不是元组。列表的索引是用整数进行访问的,例如`data`表示访问列表中的第一个元素,`data[0:2]`表示访问列表中的第一个到第三个元素。元组是一种不可变的列表,使用圆括号表示,例如`(1, 2, 3)`。所以,该错误提示是在提醒你在索引列表时需要使用整数或者片段,而不是元组。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【Python报错】 list indices must be integers or slices, not tuple结合相关概念-修改列表/元组思路方向...](https://blog.csdn.net/MengYa_Dream/article/details/127094392)[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: 33.333333333333336%"]
- *2* [occam一维反演](https://download.csdn.net/download/u010380504/5282369)[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: 33.333333333333336%"]
- *3* [k8s 部署集群遇到的“一丢丢”问题](https://blog.csdn.net/qq_44741558/article/details/126310580)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文