http://www.jb51.net/article/87398.htm
作者:pmghong 字体:[增加 减小] 类型:转载 时间:2016-06-26 我要评论
这篇文章主要介绍了Python读写txt文本文件的操作方法全解析,包括对文本的查找和替换等技巧的讲解,需要的朋友可以参考下一、文件的打开和创建
? 1 2 3 4 5 >>> f = open ( '/tmp/test.txt' ) >>> f.read() 'hello python!\nhello world!\n' >>> f < open file '/tmp/test.txt' , mode 'r' at 0x7fb2255efc00 >转载于:https://www.cnblogs.com/tiger4066/p/7281042.html
相关资源:DirectX修复工具V4.0增强版