首页 > 编程语言 > 详细

python之函数用法file()

时间:2015-11-07 17:18:30      阅读:261      评论:0      收藏:0      [点我收藏+]
# -*- 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()

 

python之函数用法file()

原文:http://www.cnblogs.com/dengyg200891/p/4945651.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!