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