Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Try Except Finally

try:
   f = open("test.txt",encoding = 'utf-8')
   # perform file operations
finally:
   f.close()
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #Try #Except #Finally
ADD COMMENT
Topic
Name
5+6 =