NameError: name 'FileNotFoundError' is not defined

多是python版本的問題python 詳情參見以下blog #py2.7 filename='waiwai.txt' try:     with open(filename) as f_obj:         contents=f_obj.read() except FileNotFoundError:     print "Sorry,the file does't exist."it  
相關文章
相關標籤/搜索