异常的捕获(常规,所以)捕获指定异常捕获多个异常异常else异常finally模块模块的导入自定义模块的导入自定义Python包导入包第三方包

异常的捕获(常规,所以)

notion image

捕获指定异常

notion image

捕获多个异常

notion image

异常else

notion image

异常finally

notion image

模块

模块的导入

notion image
代码
notion image
改别名
notion image

自定义模块的导入

notion image

自定义Python包

notion image

导入包

notion image

第三方包

notion image