file_paths = glob.glob(os.path.join(folder_path, file_extension)) NameError: name 'glob' is not defined
时间: 2024-05-01 17:16:46 浏览: 203
给你一个jingqsdfgnvsdljk
This error occurs because the module `glob` has not been imported.
You can fix this error by adding the following line at the beginning of your code:
```python
import glob
```
This will import the `glob` module and make its functions available for use in your code.
阅读全文