๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Python/Basic

[Python] ์˜ˆ์™ธ ๋ฐœ์ƒ ์‹œํ‚ค๊ธฐ, ๋ฉ”์„ธ์ง€ ์ถœ๋ ฅ

๋ฐ˜์‘ํ˜•
try:
    a = 1/0
except:
    raise Exception('์˜ค๋ฅ˜ ๋ฐœ์ƒ')

 

๋ฐ˜์‘ํ˜•