获取文件的绝对路径



import os

path = os.path.join(os.path.dirname(__file__), 'bbc_test.yaml').replace('\\','/')
print path
posted @ 2019-02-25 16:18  菜菜_包包  阅读(503)  评论(0编辑  收藏  举报