備忘録

備忘録

Python ファイル読み込み

プログラム

str = open('a.txt').read()
print str

実行結果

f:id:kagasu:20161214111436p:plain