编辑器
import fnmatch names = ["Emil.txt", "Tobias.py", "Linus.txt"] print(sorted(fnmatch.filter(names, "*.txt")))
['Emil.txt', 'Linus.txt']