argparse设置路径
时间: 2023-10-15 15:26:18 浏览: 85
Python、argparse和命令行参数
5星 · 资源好评率100%
在给定的代码中,argparse设置了两个路径参数:file_f和file_t。file_f参数是用于指定需要读取的源文件目录,默认值是"data/needProcess.xlsx"。file_t参数是用于指定已经处理完成的Excel结果文件保存路径,默认值是"data/hasProcessed.xlsx"。通过命令行参数的形式可以修改这两个路径值。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Python小模块大功能——typing模块、argparse模块、time模块、文件/路径操作模块](https://blog.csdn.net/lucky_chaichai/article/details/116642763)[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: 33.333333333333336%"]
- *2* [浅谈Python 命令行参数argparse写入图片路径操作](https://download.csdn.net/download/weixin_38526823/12849877)[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: 33.333333333333336%"]
- *3* [Python:关于命令行参数argparse写入图片路径](https://blog.csdn.net/lixiaoyu101/article/details/84139774)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文