os.path.abspath(os.path.join(os.getcwd(), "../.."))
时间: 2023-11-23 09:56:18 浏览: 62
os.path.abspath(os.path.join(os.getcwd(), "../..")) 是用于获取当前目录的上上级目录的绝对路径。 这一操作通过将当前目录的路径与"../.."拼接起来,实现了向上两级目录的移动,并返回该目录的绝对路径。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [python获取目录,相对位置操作,](https://blog.csdn.net/qq_33932782/article/details/95162816)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [labelImg2yolo.py](https://download.csdn.net/download/FriendshipTang/87516654)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文