05 2021 档案

摘要:task5.py ''' 学生档案管理 数据(属性):学号、姓名、专业、python课程分数 操作(方法):打印学生信息、返回课程分数、修改课程分数 ''' class StudentDoc: '''学生档案管理''' def __init__(self, student_number, name, 阅读全文
posted @ 2021-05-25 18:15 年年有尼 阅读(22) 评论(1) 推荐(0)
摘要:task6.py import random with open('data7.txt','r') as f: lines = f.readlines() n=eval(input('输入随机抽点的人数:')) b=set() while len(b) < n: r=random.randint(0 阅读全文
posted @ 2021-05-15 16:16 年年有尼 阅读(28) 评论(0) 推荐(0)