摘要: print("获取当前文件路径——" + os.path.realpath(__file__)) # 获取当前文件路径 parent = os.path.dirname(os.path.realpath(__file__)) print("获取其父目录——" + parent) # 从当前文件路径中 阅读全文
posted @ 2021-11-19 09:45 真果粒豆 阅读(2164) 评论(0) 推荐(0) 编辑