python 读取文件夹中所有txt文件
def show_txt():
    file_lst = os.listdir(LOG_DIR)
    txt_lst = [x for x in file_lst if x.find('.txt') != -1]
    txt_lst.sort(reverse=True)
    print(txt_lst)
def show_txt():
    file_lst = os.listdir(LOG_DIR)
    txt_lst = [x for x in file_lst if x.find('.txt') != -1]
    txt_lst.sort(reverse=True)
    print(txt_lst)
