摘要: import os path1=os.path.abspath(__file__) print(path1)#当前文件的绝对路径 path2=os.path.dirname(os.path.abspath(__file__)) print(path2)#当前文件的上一层目录的绝对路径 path3=os.path.dirname(os.path.dirname(os.path.abspa... 阅读全文
posted @ 2018-09-11 17:53 Operater 阅读(3729) 评论(0) 推荐(1) 编辑