a=[1,2,3,4,5]
b=[]
for entry in enumerate(a):
b.append(entry)
print(b)
반응형
'코딩 > 파이썬(python)' 카테고리의 다른 글
배열에서 특정 요소 찾기 (0) | 2021.05.06 |
---|---|
from collections import Counter , .most_common() (0) | 2021.05.02 |
엑셀 이용해서 그래프 그리기 (0) | 2021.04.12 |
from itertools import combinations (0) | 2021.04.07 |
람다(lambda) (0) | 2021.04.06 |