Pythonでのファイル操作 - Qiita

##読み込み#coding:utf-8f = open('test.txt','r')for row in f: print row.strip()f.close()下記のようにwithを…