获取当前文件的路径

import os
current_dir = os.path.dirname(os.path.abspath(__file__))
posted @ 2022-05-18 10:15  二二二狗子  阅读(45)  评论(0)    收藏  举报