I could swear I've seen the function (or method) that takes a list, like this [3, 7, 19]
and makes it into iterable list of tuples, like so: [(0,3), (1,7), (2,19)]
to use it instead of:
for i in range(len(name_of_list)):
name_of_list[i] = something
but I can't remember the name and googling "iterate list" gets nothing.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…