본문 바로가기

기록하는 습관

검색하기
기록하는 습관
프로필사진 Avalla

  • 분류 전체보기 (21)
    • Python (14)
      • Numpy (12)
    • SQL (7)
    • Visualization (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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
Tags
  • Python
  • 배열분리하기
  • 랜덤샘플링
  • 벡터연산
  • 배열나누기
  • ndarray
  • buit-in exception
  • 파일저장하기
  • reshape
  • SQL문제
  • 넘파이
  • 표본추출
  • 배열붙이기
  • 넘파이장점
  • 배열추가
  • SQL
  • npy
  • 해커랭크
  • Revising the Select Query I
  • 배열자르기
  • numpy
  • 배열형태변경
  • Revising the Select Query II
  • concat
  • fancyindexing
  • 배열쪼개기
  • 논리배열
  • 배열연산
  • CONCATENATE
  • 파이썬
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록예외처리 (1)

기록하는 습관

[Python] 예외처리 : try ~ excpet 구문

try ~ except for i in [2,0,'-2'] : try : print(4/i) except : print('Error') 2.0 Error Error try ~ except ~ as 에러 구문을 확인하고 싶을 떄 for i in [2,0,'-2'] : try : print(4/i) except Exception as e: print(e) 2.0 division by zero unsupported operand type(s) for /: 'int' and 'str' try ~ except ~ else 에러가 나지 않았을 때 else 구문을 실행 List = [2,0,'-2','A'] for i in range(5) : print(f"_____{i} START_____") try : resul..

Python 2023. 8. 16. 17:54
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바