Update Task01 文件自动化处理&邮件批量处理.md

“以及判定是文件还是文件”修改为“以及判定是文件还是文件夹”
This commit is contained in:
Jun-James 2021-06-15 17:07:27 +08:00 committed by GitHub
parent f127eb3a7d
commit a24e00a13b
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 路径有效性检查 ### 1.1.3.3 路径有效性检查
如果提供的路径不存在很多Python函数就会崩溃并报错。`os.path`模块提供了一些函数,用于检测给定的路径是否存在,以及判定是文件还是文件。 如果提供的路径不存在很多Python函数就会崩溃并报错。`os.path`模块提供了一些函数,用于检测给定的路径是否存在,以及判定是文件还是文件
`os.path.exists(path)`如果path参数所指的文件或文件夹存在则返回True,否则返回False。 `os.path.exists(path)`如果path参数所指的文件或文件夹存在则返回True,否则返回False。