Recent posts

[Python] Generator

less than 1 minute read

Generator list와 같은 iterable객체와 달리 대용량의 memory를 사용하지 않음 그러나 반대로 여러번 값을 가져올 수 없음 next함수를 통해 다음 generator의 값을 가져올 수 있음 함수 안의 yield를 ...

[Python] Iter & Next

less than 1 minute read

Iterable 반복 가능한 것(string, list, tuple, dictionary, set, range 등)

[Python] 전역변수 지역변수

less than 1 minute read

전역범수(Global Variable) 함수를 포함하여 스크립트 전체에서 접근할 수 있는 변수 전역 범위(Global Scope) - 전역 변수에 접근할 수 있는 범위 함수 안에서 전역변수 선언시 global 사용