获取当前目录

Java:

// 获取当前工作目录
String basePath = System.getProperty("user.dir");

Python:

curr_dir = os.path.dirname(__file__)

os.path.join(curr_dir,“...”)

posted on 2023-05-26 08:46  吴XX  阅读(6)  评论(0编辑  收藏  举报