from glob import glob
时间: 2023-09-22 07:05:15 浏览: 164
在Python中,使用"from glob import glob"语句可以导入glob模块中的glob函数。该函数用于从目录通配符搜索中生成文件列表,可以用于快速获取一定格式的文件夹或文件路径的列表。glob函数返回一个列表,列表中包含了与通配符模式匹配的所有文件或文件夹路径。要注意的是,使用glob函数时,路径中的分隔符不会被匹配。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [python—glob模块函数(搜索目录文件)](https://blog.csdn.net/JBY2020/article/details/126853596)[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_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [glob——python路径获取包的介绍和使用](https://blog.csdn.net/ZH13114130815/article/details/126867324)[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_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [babel-plugin-transform-glob-import:使用Glob一次导入多个文件](https://download.csdn.net/download/weixin_42164931/18257452)[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_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文