📜  python 打开文件异常 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:48.833000             🧑  作者: Mango

代码示例1
try:
  with open("path\to\file", "r"):
    ...
except FileNotFoundError:
  print("file does not exist :(")