Answers for "python open file exception"

0

python open file exception

try:
  with open("path\to\file", "r"):
    ...
except FileNotFoundError:
  print("file does not exist :(")
Posted by: Guest on September-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language