# -*- 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之函数(一)定义函数以及传参
- python中setup函数的用法_python学习之setUp函数和tearDown函数
- python标准库math中计算平方根的函数_16 Python 标准库之 math 模块 - Python 进阶应用教程...
- python中pow的意思_python中pow函数用法及功能说明
- python学习之函数返回值
- Python之函数的递归、匿名函数、内置函数
- python学习之--自定义函数:
- python中bool函数用法_在python中bool函数的取值方法
- python中content的用法_python中append函数用法讲解
- python中xticks函数_基于matplotlib xticks用法详解