헷갈림 : enumerate / iterator / generator
iterable : 반복 가능한 객체 list, dict, set, str, bytes, tuple, range enumerate : 인덱스와 iterable 가능한 요소를 같이 반환 (튜플) box = ['a','b','c','d'] box_e =enumerate(box) for i, e in box_e: print(i, e) # 0, 'a' 이런식으로 출력됨 iterator : 값을 차례대로 꺼낼 수 있음 iter()로 이터레이터로 만들 수 있음 iter : 매직메소드 next : 이 메소드로 호출하여 iter의 객체를 하나씩 가져ㅐ올 수 있음 StopIteration 에러 : 요소가 다 반환되면, 해당 에러가 반환됨 a = [1..
2022. 4. 2.
산업제어시스템 보안 지침서 및 가이드 일부
위험 평가 부문 * nist sp 800-30 : 위험 평가에 대한 가이드 여기서 정의하는 위험 1) the adverse impacts that would arise if the circumstance or event occurs 2) the likelihood of occurrence” 위험 평가 : “the process of identifying, estimating, and prioritizing risks to organizational operations (including mission, functions, image, reputation), organizational assets, individuals, other organizations, and the Nation, resulting ..
2022. 3. 23.