摘要: 查看D目录下的文件: 使用os模块创建目录,代码如下: path = r"D:\a\b" isExists = os.path.exists(path) print(isExists) if not isExists: # 路径不存在,即文件名不存在 os.mkdir(path) View Code 阅读全文
posted @ 2020-02-28 21:38 -*-菜鸟程序-*- 阅读(6149) 评论(0) 推荐(0)