Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урокОбсуждения
If except can handle common errors very well, doesn't that make the use of raise redundant inside of a try-except block?
For example:
try:
print( 5 / 0 )
except ZeroDivisionError:
raise ValueError("An error occurred!")
What's the difference if we handle it this way:
try:
print( 5 / 0 )
except (ZeroDivisionError, ValueError):
print("An error occurred!")
3 голосов
2 ответовАктуальное сегодня
c++ help
1 Votes
Code optimization | C++
0 Votes
C++ students' scores program
0 Votes
Help pls/ python
0 Votes
Find saved code
0 Votes
Deploy Website
0 Votes
Projects not Working
2 Votes
React course
0 Votes