結果 : python update index in for loop