# 统计学生总人数
def total():
if os.path.exists(filename):
with open(filename,'r',encoding='utf-8') as rfile:
students=rfile.readlines()
if students:
print("一共有{}名学生。".format(len(students)))
else:
print("还没有录入学生信息。")
else:
print("暂未保存数据信息....")