博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
python之函数用法file()
阅读量:4502 次
发布时间:2019-06-08

本文共 378 字,大约阅读时间需要 1 分钟。

# -*- coding: utf-8 -*-#python 27#xiaodeng#python之函数用法file()#file()#说明:file()内建函数它的功能等于open(),但是可以看出,他是个文件工厂(生成文件对象),dict()生成字典对象#包含与被包含的关系'''file(...)    file(name[, mode[, buffering]])#buffering是缓冲相关的可选参数        Return the binary representation of an integer or long integer.'''html=file('test.txt','r')print html.read()

 

转载于:https://www.cnblogs.com/dengyg200891/p/4945651.html

你可能感兴趣的文章
JS小问题之——缓冲运动
查看>>
C#导出EXCEL方法总结
查看>>
【poj3342】 Party at Hali-Bula
查看>>
SCM基础之组织结构设计
查看>>
「OC」@property @synthesize和id
查看>>
(爱加密系列教程六)Android代码注入大揭秘
查看>>
ERP程序开发中遇到的六种错误
查看>>
Hibernate_拦截器与日志文件
查看>>
2-Sixteenth Scrum Meeting-20151216
查看>>
Visual Studio 2015、2013、2012、2010、2008、2005各版本下载+有效密钥激活
查看>>
Appium键盘操作
查看>>
常见排序
查看>>
jsp自动生成验证码
查看>>
射频识别技术漫谈(12)——三次相互认证【worldsing笔记】
查看>>
flume收集日志无法在HDFS上存储
查看>>
IO多路复用(select)
查看>>
HDUOJ -----Color the ball
查看>>
HashMap
查看>>
docker建立一个博客的过程
查看>>
基于jquery带时间轴的图片轮播切换代码
查看>>