Answers for "python sort files"

1

python script to sort file content

with open('shopping.txt', 'r') as r:
    for line in sorted(r):
        print(line, end='')
Posted by: Guest on October-28-2020
0

sort files in windows order python

from tkinter import Tcl
Tcl().call('lsort', '-dict', file_list)
Posted by: Guest on October-29-2020

Python Answers by Framework

Browse Popular Code Answers by Language