参考:http://stackoverflow.com/questions/29347790/difference-between-ioerror-and-oserror
在3.x版本已经移除,剩下OSError,其实两者差别几乎没有,
常见,open函数是IOError,其他如os.remove,os.mkdir都是OSError,可能因为是os调用,而open是直接调用.还有shutil也是OSError
参考:http://stackoverflow.com/questions/29347790/difference-between-ioerror-and-oserror
在3.x版本已经移除,剩下OSError,其实两者差别几乎没有,
常见,open函数是IOError,其他如os.remove,os.mkdir都是OSError,可能因为是os调用,而open是直接调用.还有shutil也是OSError
相关文章: