摘要: 1. 使用os模块。 cur--path = os.path.realpath("__file__”) 获取当前脚本的真实路径 curpath = ospath.dirname ( cur--path)获取当前脚本的文件夹路径 2.apath = os.path.jion(curpath, "脚本. 阅读全文
posted @ 2018-03-30 16:29 冰霜刀剑 阅读(874) 评论(0) 推荐(0) 编辑