我尝试运行一个使用 glob() 函数的脚本,但它给了我这个错误:
imagePatches = glob('/kaggle/input/IDC_regular_ps50_idx5/**/*.png', recursive=True)
TypeError: glob() got an unexpected keyword argument 'recursive'
我使用的是python2.7
最佳答案
对 **
和 recursive
参数的支持仅为 added in Python 3.5 .
Python 2 version of glob
仅接受一个参数。
关于python - glob() 收到意外的关键字参数 'recursive',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56103938/