def METHOD_NAME(f,file_name):
    lines_in_file = []
    lines_in_file_with_number = []
    lines_in_file = f.readlines()
    f.close()
    lines_in_file_with_number = create_lines_with_number(lines_in_file)
    # 根据原文件名生成标题添加了序号的文件的文件名
    markdown_file_with_number = os.getcwd() + '\\' + file_name[::-1].split('.',1)[1][::-1] + '_withNum.md'
    if not os.path.exists(markdown_file_with_number):
        with open(markdown_file_with_number, 'w+',encoding='utf-8') as f:
            for line in lines_in_file_with_number:
                f.write(line)
            print('文件已生成')
    else:
        if input('文件名重复，是否覆盖 ' + markdown_file_with_number + ' (y/n)').lower() == 'y':
            with open(markdown_file_with_number, 'w+',encoding='utf-8') as f:
                for line in lines_in_file_with_number:
                    f.write(line)
                print('文件已生成')
        else:
            print('程序退出')