for index, item in enumerate(items): print(index, item) #if you want to start from 1 instead of 0 for count, ... python access index in for loop.
確定! 回上一頁