一个小白的问题。没有看懂
程序代码:
file_name = 'hello.txt' try: with open(file_name) as f_object: conters = f_object.read() except ZeroDivisionError: msg = "Sorry your filename is " + file_name + ' ' + "no." print(msg)
代码是这样的,正在学习python异常处理,运行的时候出错,但是没看明白是哪儿出错了,求各位大佬指教