# -*- coding:utf-8 -*-
#__author__ = 'YYY'
import re
PATH = r'C:\Users\tester\Desktop\sd.txt'
def read_file(path):
"""
read sd.txt,return list
:param path:
:return:
"""
stu_list = []
with open(PATH, 'r', ) as f:
for i in f.readlines():
stu_list.append(i)
return stu_list
def _modify_data(stu_list:list):
"""
[xx,xx] to [{'name':'xxx','score':'90'}],remove spaces and line breaks
:param stu_list:
:return:
"""
stu_list_new =
学习信息按照score排序-python
最新推荐文章于 2024-09-06 11:41:43 发布