05 2021 档案

摘要:'''student.py''' class StudentDoc: '''学生档案管理''' def __init__(self,students_number,studens_name,major,python_score): self._students_number=students_num 阅读全文
posted @ 2021-05-30 22:44 阿巴阿巴阿巴巴啊 阅读(57) 评论(2) 推荐(0)
摘要:#统计文件data1_1.txt行数(不包括空白行)#data1_1.txt中的空白行都是由\n构成的#task1_1.py with open('data1_1.txt','r',encoding='utf-8') as f : data=f.readlines() #一次读入所有数据,按行读取, 阅读全文
posted @ 2021-05-16 16:40 阿巴阿巴阿巴巴啊 阅读(81) 评论(2) 推荐(0)