这里index是int类型 原始代码:wc.to_file('F:\\BiShe_samples\\result\\'+index+'.png') 修改为:wc.to_file('F:\\BiShe_samples\\result\\'+str(index)+'.png')
python报错TypeError: must be str, not int
最新推荐文章于 2024-02-04 12:23:30 发布
这里index是int类型 原始代码:wc.to_file('F:\\BiShe_samples\\result\\'+index+'.png') 修改为:wc.to_file('F:\\BiShe_samples\\result\\'+str(index)+'.png')