2013-06-09 Python| Pythonでファイルの作成 Python 概要 Pythonでファイルの作成 内容 ファイル出力のサンプルコードは以下。 サンプルコード # -*- coding: utf-8 -*- f = open("hoge.txt", "w") f.write("hello python\nline2")