File name split

Asked 2 years ago, Updated 2 years ago, 93 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


© 2024 OneMinuteCode. All rights reserved.