Python python获取当前运行目录 在 Python 中,您可以使用以下代码获取当前脚本的运行目录: import os current_directory = os.getcwd() print(f"当前运行目录: {current_... 08月07日150评论运行目录 阅读全文