I have the above error in the line row_output = ... How can I fix it?
for index, row_content in enumerate(info):
row_output = 'C:\Users\khana\Documents\all\' + index
if not os.path.exists(row_output):
os.makedirs(row_output)
Cuz the "\" is escape character in python, but in window, it also is the split of path. So we can use "\\" to different them. However, if your OS is mac or liunx, you should use "/". The "/" also is useful for window. So i think the "/" is best choice.
for index, row_content in enumerate(info):
row_output = 'C:/Users/khana/Documents/all/' + index
if not os.path.exists(row_output):
os.makedirs(row_output)