摘要: 文件操作 通过内置的open()函数打开一个文件对象。 格式:fd=open('filename') 以不同模式打开一个文件对象: 示例: [xxoo:/tmp]$ cat tmpfilehelloworld 只读方式: #!/usr/bin/env pythonfile=open('tmpfile 阅读全文
posted @ 2018-08-26 16:34 imcati 阅读(162) 评论(0) 推荐(0) 编辑