간단한 조건에 대하여 List 요소 필터링
(EX)
tmpList = range(1,101) evenList = [num for num in tmpList if num%2 == 0]
'Python' 카테고리의 다른 글
[python] 직접 만든 module import 시 import 한 클래스에 파일을 로드할 시 주의! (0) | 2014.10.20 |
---|---|
[Python] PyQt 튜토리얼 (0) | 2014.10.08 |
[python]python file download (0) | 2014.09.25 |
Crawler Class Sample (0) | 2014.09.25 |
map function (0) | 2014.09.24 |