选项卡错误

这行为什么会出现错误:对于file.readlines()中的行:谢谢电子/米/

# 回答1

不知道错误消息是什么,我只能猜测。文件是一个内置函数。这可能是问题所在吗?

选择 | 换行 | 行号
  1. >>> file.readlines()
  2. Traceback (most recent call last):
  3.   File "<interactive input>", line 1, in <module>
  4. TypeError: descriptor 'readlines' of 'file' object needs an argument
  5. >>> 

标签: python

添加新评论