def tobe(filename, number):if number == 1:#生成10个文件for i in (1)(1,11):newfile = filename + str(i) + '.txt'(2)(newfile, 'w', encoding='utf-8')print('批量生成成功')if number == 2:(3) osfor i in range(1, 11):newfile = filename + str(i) + '.txt'os.(4)(newfile)print('批量删除成功')print('------批量删除|创建文件-----')number = int(input('输入1表示创建10个txt文件,2:删除10个txt文件:\n'))if number in (5):filename = input('输入要操作的文件前缀:')tobe(filename, number)else:print('你的选择错误')