DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
sort filename in list with python
lsorted = sorted(imgs_list, key=lambda x: int(os.path.splitext(x)[0]))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#sort
#filename
#list
#python
ADD COMMENT
Topic
COMMENT
Name
6+6 =
Submit