相关疑难解决方法(0)

为什么open()比Python中的file()更好?

可能重复:
Python - 何时使用文件vs打开

从官方python文档,

http://docs.python.org/library/functions.html#file

打开文件时,最好使用open()而不是直接调用此构造函数

但它没有给出理由.

python file

16
推荐指数
1
解决办法
2353
查看次数

标签 统计

file ×1

python ×1