成功解决TypeError: tuple indices must be integers or slices, not tuple

Problem Description:

The index of the tuple must be an integer or a slice, not a tuple


Cause Analysis:

Error in access method of tuple


solution:

Details view: Python basics-lists, tuples, sets, dictionaries


Problem expansion:

The format of the question is similar: when XXX indices must be integers or slices, not XXX, there is usually an error in the access method

Guess you like

Origin blog.csdn.net/weixin_43283397/article/details/109638577