类型错误: 只能将list类型和list类型联系起来,而不是str类型
修改:加入list用append添加。或者 类似这样的写法:
"/".join([root_path,file_name])
将需要加入的东西先连接起来,然后用[ ]组合,
TypeError: can only concatenate list (not "str") to list
最新推荐文章于 2024-06-06 10:13:15 发布
类型错误: 只能将list类型和list类型联系起来,而不是str类型
修改:加入list用append添加。或者 类似这样的写法:
"/".join([root_path,file_name])
将需要加入的东西先连接起来,然后用[ ]组合,