본문 바로가기 메뉴 바로가기

Hello, Python

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Hello, Python

검색하기 폼
  • 분류 전체보기 (146)
    • Python (87)
      • tkinter (12)
    • Java (6)
      • Spring (1)
      • JPA (3)
    • MySQL (2)
    • Linux (19)
    • Virtualization (1)
    • Infra (1)
    • Network (1)
    • VBA(Excel) (19)
    • Apache (3)
    • html (1)
    • Windows (2)
    • 일상다반사 (2)
  • 방명록

Except (1)
Python, 예외처리

프로그램의 제어흐름을 조정하기 위해 사용하는 이벤트를 예외(Exception)라고 함.기본적으로 파이썬에서는 아무런 처리를 하지 않는 예외에 대하여 자동으로 에러(Error)를 일으키며, 사용자의 제어흐름을 벗어난 에러문을 출력하고 프로그램을 종료함.>>> a = [1,2,3]>>> a[3] #리스트 그기를 벗어난 인덱스참조Traceback (most recent call last): File "", line 1, in a[3]IndexError: list index out of range>>> 위처럼 비정상적인 종료를 일으키는 예외를 '처리되지 않은 예외(Unhandled Exception)'라고 함. >> 구문에러 > print('a) File "", line 1 print('a) ^SyntaxErr..

Python 2016. 4. 29. 13:09
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • JPA
  • highlightthickness
  • Linux
  • activebackground
  • onetomany
  • Module
  • disabledforeground
  • tkinter
  • 폼
  • activeforeground
  • vba
  • 리눅스
  • FetchType
  • 상수
  • indicatoron
  • tkinter command & bind [명령어묶기와 사건묶기] Python
  • highlightbackground
  • 파이썬
  • ManyToOne
  • fetch join
  • Excel
  • Private
  • checkbutton
  • command
  • Java
  • IdClass
  • apache
  • Composite Key
  • borderwidth
  • Python
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바