python随笔:os.path中的realpath\dirname\join的学习

1.os.path.realpath(__file__)获取到当前文件的真实地址

2.os.path.dirname(__file__)获取当前文件的目录地址

3.os.path.join()拼接地址

 

posted @ 2021-02-05 11:25  文刀六日  阅读(175)  评论(0编辑  收藏  举报