Untitled

mail@pastecode.io avatar
unknown
python
2 months ago
330 B
7
Indexable
Never
file_string = "003_logs_2017-11-03;001_logs_2017-11-01;005_logs_2017-11-05;002_logs_2017-11-02;004_logs_2017-11-04"

file_list = file_string.split(';')

file_list.sort()

file_list_sorted = file_list  # зачем ?

file_list_sorted.append('006_logs_2017-11-06')

string = '||'.join(file_list_sorted)

print(string)
Leave a Comment