文件路径

plot.py文件路径:/Users/yangfengjuan/jupyter/plot.py 获取plot.py文件的绝对路径 1 currentpath = os.path.dirname(os.path.realpath(__file__)) 2 运行结果:/Users/yangfengjua
posted @ 2021-03-04 15:08  琥珀主yang  阅读(241)  评论(0编辑  收藏  举报