User Tools

Site Tools


script:python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
script:python [2022/10/29 16:15] – external edit 127.0.0.1script: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. 
 +</code><code python>
 +try:
 +   You do your operations here;
 +   ......................
 +except:
 +   If there is any exception, then execute this block.
 +   ......................
 </code> </code>
   * The except clause with multiple exceptions<code python>   * The except clause with multiple exceptions<code python>
script/python.1667060147.txt.gz · Last modified: 2022/10/29 16:15 by 127.0.0.1