摘要: ​​​ 1 def read_file(file): 2 """@参数 file:文件名,字符串类型 3 读文件中的学校名到列表中,返回排名前10学校集合,集合类型。 4 """ 5 s = set() 6 f = open(file, 'r', encoding='utf-8')# 打开要去掉空行 阅读全文
posted @ 2022-04-28 11:34 风里带刀 阅读(454) 评论(0) 推荐(0)