from os import * open("/data/0_0.txt")
原因: 因为导入了os模块后默认的open函数调用的是os下的 解决: 显示的调用os模块下的函数,避免函数冲突 例:
import os os.listdir(fileName)
原文(需要翻墙地址)