if (!PyTuple_Check(op) || op->ob_refcnt != 1) { Py_XDECREF(newitem); //失败减少引用计数 PyErr_BadInternalCall(); return -1; } if (i < 0 || i >= Py_SIZE(op)) { Py_XDECREF(newitem); //失败减少引用计数 PyErr_SetString(PyExc_IndexError, "tuple assignment index out of ra...