← 学习中心

Python 文件与异常

with 语句与 try/except

核心要点

  • open/read/write
  • with 自动关闭
  • except 捕获异常
Python 文件与异常 - 生命科学与前沿科技学习平台 | 必学必会