python 用os的join遍历图片文件时出错了
import os
#遍历目录
for root,dirs,file in os.walk('C:/Users/10748/Desktop/flow/data/train/'):
#打印图片路径及名称
image_path = os.path.join(root,file)
print(image_path)
``` File "D:\Anaconda3\envs\tensorflow-gpu\lib\genericpath.py", line 149, in _check_arg_types
(funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'list'
```求大神帮帮忙吧 !