reversed 썸네일형 리스트형 파이썬 튜터리얼 정리 5.6 자료구조 - 루프 테크닉 파이썬 튜터리얼 정리 5.6 자료구조루프 테크닉 ループのテクニック 루프 만들 때, (루핑 시, for-in) 딕셔너리 - items() : key-value 값을 동시에 얻을 수 있음.>>> knights = {'gallahad': 'the pure', 'robin': 'the brave'} >>> for k, v in knights.items(): ... print(k, v) ... gallahad the pure robin the brave 시퀀스 - enumerate() : index - value 값을 동시에 얻을 수 있음.>>> for i, v in enumerate(['tic', 'tac', 'toe']): ... print(i, v) ... 0 tic 1 tac 2 toe 둘 이상의 시퀀스를.. 이전 1 다음