How to handle FileNotFoundError when “try .. except IOError” does not catch it?

后端 未结 0 514
灰色年华
灰色年华 2021-02-11 18:25

How can I catch an error on python 3? I\'ve googled a lot but none of the answers seem to be working. The file open.txt doesn\'t exist so it should print e.errno.

This i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题