python 获取当前路径

使用os模块:

os.path.realpath(__file__)

 

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