script:python
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
script:python [2022/10/29 16:15] – external edit 127.0.0.1 | script:python [2023/11/28 09:35] (current) – [The try-except clause] admin | ||
---|---|---|---|
Line 1107: | Line 1107: | ||
else: | else: | ||
If there is no exception then execute this block. | If there is no exception then execute this block. | ||
+ | </ | ||
+ | try: | ||
+ | You do your operations here; | ||
+ | | ||
+ | except: | ||
+ | If there is any exception, then execute this block. | ||
+ | | ||
</ | </ | ||
* The except clause with multiple exceptions< | * The except clause with multiple exceptions< |
script/python.1667060147.txt.gz · Last modified: 2022/10/29 16:15 by 127.0.0.1