会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
成功不是偶然
博客园
首页
新随笔
新文章
联系
管理
订阅
2020年2月23日
【转载】python:获取当前目录、上层目录路径
摘要: import os print(" 获取当前文件目录 ")# 当前脚本工作的目录路径print(os.getcwd())# os.path.abspath()获得绝对路径print(os.path.abspath(os.path.dirname(__file__))) print(" 获取当前文件上
阅读全文
posted @ 2020-02-23 21:05 成功不是偶然
阅读(1108)
评论(0)
推荐(0)
公告