会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
。低调ヽ继续
The bast there ever was.The bast there ever will be.
博客园
首页
新随笔
联系
订阅
管理
2018年3月28日
python,os.path简单用法
摘要: #首先导入os包import osimport time# basename(path),去掉路径名称,单独返回文件名f = os.path.basename('E:/python/day-2/test.txt')# 输出结果是test.txtprint(f)#dirname(path),去掉文件名
阅读全文
posted @ 2018-03-28 14:15 。低调ヽ继续
阅读(448)
评论(0)
推荐(0)
编辑
公告