参考:http://stackoverflow.com/questions/29347790/difference-between-ioerror-and-oserror

 

在3.x版本已经移除,剩下OSError,其实两者差别几乎没有,

常见,open函数是IOError,其他如os.remove,os.mkdir都是OSError,可能因为是os调用,而open是直接调用.还有shutil也是OSError

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2021-04-18
  • 2021-12-29
  • 2021-06-06
猜你喜欢
  • 2022-12-23
  • 2021-08-01
  • 2021-10-11
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2021-07-06
相关资源
相似解决方案