python_basic_Exeption
python
Exception
1 | # /c/Users/brill/Desktop/PyThon_Function/venv/Scripts/python |
- 크롤링 코드를 작성 했을때
“https://sports.news.naver.com/news?oid=109&aid=0004526080" : 페이지있음,
“https://sports.news.naver.com/news?oid=109&aid=0004526081" : 페이지가 없다면,
“https://sports.news.naver.com/news?oid=109&aid=0005526080" : 페이지 있음, - 크롤링 코드 멈춤
- 프로그램이 멈춰서 안됨
java 의 try catch 구문과 같음
1 | # /c/Users/brill/Desktop/PyThon_Function/venv/Scripts/python |
어떻게던 프로그램이 돌아 갈 수 있도록
만들어 주는 것이 중요하다.
- class 정리
- __init__ : set_name, set_id 해 주지 않고, 통합시켜주는 역할
- __eq__, __ne__ : 부등호 연산자
- 상속, 다형성(서로다른 클래스에서 공통으로 쓰는 함수)
- Exception
- class attribute / instance attribute / instance method 차이
- 추상 class (안배웠음)
- data incapsulation
1 | # /c/Users/brill/Desktop/PyThon_Function/venv/Scripts/python |
여전히 Error가 나는 코드
나는 Exception 안됨
python_basic_Exeption
https://yoonhwa-p.github.io/2021/12/14/python/Exeption_python/
You need to set
install_url
to use ShareThis. Please set it in _config.yml
.