python 获取当前路径

使用os模块:

os.path.realpath(__file__)

 

posted @ 2019-01-15 17:28  有梦就要去实现他  阅读(232)  评论(0编辑  收藏  举报