pannyvan

导航

2016年12月8日 #

Python path

摘要: 1.os.path 1.1.os.path.dirname(__file__) 1.1若文件__file__以绝对路径被运行的,则输出绝对路径 1.2若文件以相对路径被运行的,则输出为空 1.2.os.path.abspath(__file__) : 输出__file__的绝对路径 1.3.os.p 阅读全文

posted @ 2016-12-08 22:56 pannyvan 阅读(239) 评论(0) 推荐(0) 编辑