▍1. myTask0
有的科技图书会附有索引,其中列出书中重要术语出现的页码,便于读者查看。试设计一个类似的程序。输入是一个英文文本文件,输出是文件中关键字及其出现的行号的列表并按照关键字有序排列。程序运行方式:>index inputfile keys outputflie (Some books will be accompanied by technology index, which lists important terms appear in the book pages, easy to readers to view. Try to design a similar procedure. English text input is a file, the output is a file that appears in the keywords and their line numbers list and ordered according to keywords. Program run mode:> index inputfile keys outputflie)