2008-09-01ãã1ã¶æéã®è¨äºä¸è¦§
Python2.5以éã§ãwithã¹ãã¼ãã¡ã³ãã使ããã with open('logfile', 'r') as logfile: logfile.write('hogehoge') ããããã¨ãopen()ã§éãããã¡ã¤ã«ã®close()ãæé»çã«ã確å®ã«å¼ãã§ããããwithãªãã ã¨ããããªãµãã«ãªã£ã¦ãã¡ãã£ã¨è¦è¦ããã lâ¦