我的档案就是这样。你知道吗
label0/index.jpeg 0
label1/index.jpeg 1
我的密码是
def add_ext_name(cls, path, ext_name):
name, ext = os.path.splitext(os.path.basename(path))
added = os.path.join(os.path.dirname(path), name + ext_name + ext)
return added
错误是
def basename(p):
"""Returns the final component of a pathname"""
p = os.fspath(p)
sep = _get_sep(p)
i = p.rfind(sep) + 1
TypeError: expected str, bytes or os.PathLike object, not ImageProperty
我哪里出错了?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐