01. 문법오류 발생시 → 에러종류, 에러메시지 표시 - 구조 : 조건에 맞으면 pass , 안맞으면 에러 메시지 표현 for i in range(5) print('예외처리') for i in range(5) ^ SyntaxError: invalid syntax 02. 예외처리 -에러가 발생할 상황이라도 코드가 멈추지 않고 pass되도록 하고 싶을때 사용 try: 예외가 발생할 가능성이 있는 코드 except [ 처리할 예외명 [ as 에러 메시지 변수 ]]: try 절에서 발생한 예외를 처리할 코드 [ else: ] try 절에서 예외가 발생하지 않았을 경우에만 실행될 코드 [ finally: ] try 절이 실행되고 나면 언제나 마지막에 실행될 코드 - assert 문 - assert [조건], [에..
파이썬 프로토타입 라이브러리_streamlit _
·
프로그래밍 언어/Python
https://zzsza.github.io/mlops/2021/02/07/python-streamlit-dashboard/ Python Streamlit 사용법 - 프로토타입 만들기 Python Streamlit에 대한 글입니다 python streamlit tutorial, python streamlit dashboard, python streamlit install, python streamlit vs dash, python dashboard, python streamlit example zzsza.github.io
파이참 설치 옵션 설정의 의미
·
프로그래밍 언어/파이참
https://dora-guide.com/pycharm-install/ 파이참(PyCharm) 다운로드 및 설치 후 설정 방법 - 도라가이드 파이참(PyCharm) 다운로드 및 설치 후 설정 방법과 프로젝트 생성에 대한 과정까지 상세하게 설명드립니다. 설치 환경은 Windows 10 입니다. 설치할 버전은 무료 버전인 Community Edition 버전입니다. dora-guide.com
'\n'개행변수 삭제
·
프로그래밍 언어/Python
https://m.blog.naver.com/PostView.nhn?blogId=popqser2&logNo=221399436541&proxyReferer=https:%2F%2Fwww.google.com%2F 파이썬 - strip in list (리스트에서 문자 삭제 사용하기) (feat. rstrip, lstrip) 0x00 서론텍스트 파일을 open 하여 내용을 읽어 올 때 개행으로 구분되어 있으면, '\n' 문자가 붙어서 들어... blog.naver.com
f string 소수점 표기 법 print(f'{loss :.2f}')
·
프로그래밍 언어/Python
f string 소수점 표기 법 print(f'{loss :.2f}')
데이터 순서 역순으로 바꾸기, 뒤집기 flip/reverse
·
프로그래밍 언어/Python
데이터 순서 역순으로 바꾸기, 뒤집기 flip/reverse https://codetorial.net/tips_and_examples/reverse_python_list_or_numpy_array.html 3. 파이썬 리스트 순서 뒤집기 - Codetorial 4) np.flip() vs np.flipud() vs np.fliplr() np.flip(), np.flipud(), np.fliplr() 메서드의 차이에 대해 알아봅니다. 2차원 어레이에서 세가지 메서드는 다르게 동작합니다. np.flip() vs np.flipud() vs np.fliplr(). np.flip()은 �� codetorial.net
torch.nn.DataParallel
·
프로그래밍 언어/Pytorch
https://hwijeen.github.io/2018-11-05/Data-parallelism,-multi-GPU/ Data Parallelism, Multi-GPU Pytorch의 nn.parallel 및 nn.DataParallel 사용하기 hwijeen.github.io