Python拼接路径

import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
path_name = os.path.join(BASE_DIR, 'test.sh')
print(path_name)

  

posted @ 2021-08-21 11:31  lucky_tomato  阅读(276)  评论(0编辑  收藏  举报