Python try-except 文で汎用的にエラーを表示

投稿者:

  try:
    # 処理

Thank you for reading this post, don't forget to subscribe!

  except Exception as e:
    print (‘=== エラー内容 ===’)
    print (‘type:’ + str(type(e)))
    print (‘args:’ + str(e.args))
    print (‘e:’ + str(e))