IndexError:tuple index out of range

 意思是超出了数组的范围

 使用了正则表达式,一个()表示一个group,把([+|-])的括号加上,问题解决。

你可能感兴趣的:(IndexError:tuple index out of range)