摘要: 在os 包下,给出 import os ,os.path.abspath(__file__)获取当前文件的相对路径,os.path.dirname 获取当前文件所在的文件夹目录 print(os.path.dirname(os.path.abspath(__file__))) 然后添加系统环境变量, 阅读全文
posted @ 2017-12-04 23:39 浮云随笔 阅读(886) 评论(0) 推荐(0) 编辑