DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+1 =
Submit