File name split

Asked 1 weeks ago, Updated 1 weeks ago, 1 views

dt_list = glob('*.jpeg')

dt_list1 = str(dt_list('_'))
AttributeError: 'list' object has no attribute 'split' 

There is an error when I load the picture file and split the name string, do you know how?

split python

2022-09-20 11:40

1 Answers

'list' object has no attribute 'split'

This means that list objects are not divisible.

str(list).split()


2022-09-20 11:40

If you have any answers or tips


© 2022 pinfo. All rights reserved.