Python获取当前路径

1、代码

import os
path = os.path.dirname(__file__)

 

posted @ 2022-06-06 14:18  朱小勇  阅读(264)  评论(0)    收藏  举报