You should use the .split()
function
textList = [...]
for i in textList:
i.split('train/')
desiredValue = i[1].split(".")
desiredValue = desiredValue[0]
CLICK HERE to find out more related problems solutions.
You should use the .split()
function
textList = [...]
for i in textList:
i.split('train/')
desiredValue = i[1].split(".")
desiredValue = desiredValue[0]
CLICK HERE to find out more related problems solutions.