摘要: class StudentDoc: def __init__(self,studentnumber,name,major,point): self._studentnumber = studentnumber self._name = name self._major = major self._p 阅读全文
posted @ 2021-06-01 11:27 lml565 阅读(42) 评论(2) 推荐(0)
摘要: with open('data1_1.txt', 'r', encoding = 'utf-8') as f: data=f.readlines()n = 0for line in data: if line.strip('\n') == '': continue n+=1print(f'共{n}行 阅读全文
posted @ 2021-05-17 23:07 lml565 阅读(51) 评论(2) 推荐(0)