轻松python之文件专题-读取文件专题
摘要:
1.安全的读取文件>>> handler=open('123.txt')>>> try:handler.read ()finally:handler.close ()'abcdefg\n123456\nabcdefg\n123456\n'>>> 在上面的例子中,我们引入try... finally.... 阅读全文
posted @ 2015-09-01 20:23
李灵晖
阅读(127)
评论(0)
推荐(0)
浙公网安备 33010602011771号