Merge pull request #8 from Jun-James/patch-1

Update Task01 文件自动化处理&邮件批量处理.md
This commit is contained in:
Muxiaoxiong 2021-06-17 11:01:43 +08:00 committed by GitHub
commit b169585147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ caFilePath.split(os.path.sep) #['D:', 'Datawhale', 'python办公自动化', 'p
```
### 1.1.3.3 路径有效性检查
如果提供的路径不存在很多Python函数就会崩溃并报错。`os.path`模块提供了一些函数,用于检测给定的路径是否存在,以及判定是文件还是文件。
如果提供的路径不存在很多Python函数就会崩溃并报错。`os.path`模块提供了一些函数,用于检测给定的路径是否存在,以及判定是文件还是文件
`os.path.exists(path)`如果path参数所指的文件或文件夹存在则返回True,否则返回False。