To be able to catch an exception using a try/except block. ... print(mysum) except Exception as e: if hasattr(e, 'message'): print('Error: %s' % e.message) ...
確定! 回上一頁