반응형

enumerate

FOR문을 인덱스 가져옴

FOR index, list in enumerate(lists,start=1)
for index, list in enumerate(lists):
	print(index,list)

 

반응형
복사했습니다!