摘要: 文件夹的基本操作 1、判断某个路径是文件还是文件夹 1 import os 2 3 #1. os.path.isfile判断是否为一个文件 4 #2. os.path.isdir判断是否为一个文件夹 5 print(os.path.isfile('E:\\testdir')) 6 print(os. 阅读全文
posted @ 2020-06-26 14:42 可口可乐嗨 阅读(223) 评论(0) 推荐(0) 编辑
levels of contents