python当前目录怎么写 后端开发 24年5月23日 编辑 不知道选哪款模板? 加入会员,下载所有会员板! 广告 站长知名站长 取消关注 关注 私信 如何在 Python 中获取当前目录 在 Python 中获取当前目录有两种主要方法: 1. 使用 os.getcwd() import os current_dir = os.getcwd() print(current_dir) 给TA打赏 共{{data.count}}人 人已打赏