会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
哪里多
博客园
首页
新随笔
联系
订阅
管理
2021年5月13日
python 获取当前目录下的文件目录和文件名
摘要: os模块下有两个函数: os.walk() os.listdir() # -*- coding: utf-8 -*- import os def file_name(file_dir): for root, dirs, files in os.walk(file_dir): print(root)
阅读全文
posted @ 2021-05-13 23:16 拷贝达人
阅读(3249)
评论(0)
推荐(0)
编辑
公告