#-*-coding:utf-8 import sys try: strInput=int(raw_input(‘input sth.‘)) f=file(‘d:\\kjdsklslkdkl2l23223.datdk‘) except (EOFError,ValueError): #多重异常 print(ValueError.message) print(‘eof or value‘) except: print(‘unknow error‘) else: print(‘good‘)
2024-01-02 13:33:16
#-*-coding:utf-8 import sys try: strInput=int(raw_input(‘input sth.‘)) f=file(‘d:\\kjdsklslkdkl2l23223.datdk‘) except (EOFError,ValueError): #多重异常 print(ValueError.message) print(‘eof or value‘) except: print(‘unknow error‘) else: print(‘good‘)