python list out of range 回避