with open("open_file_name.txt") as f :
for line in f:
print line # TO DO Something
Line By Line 형태로 데이터를 읽어서 처리한다.
'Technology > Programming' 카테고리의 다른 글
GREP / 파일 내 특정 라인 제외하기 (0) | 2015.10.20 |
---|---|
Python / Dictionary 자료형 선언하는 다양한 방법 (0) | 2015.08.04 |
[jQuery] jQuery Select Box 제어하기 (1) | 2014.05.16 |
Python / Python 기본 파일 입출력, Parsing (0) | 2012.09.05 |
Python / 숫자, 소수점 정규표현식 (0) | 2012.07.23 |