代码拉取完成,页面将自动刷新
class Course:
name = ' '
credit = ' '
def __init__(self, name, credit):
Course.name = name
Course.credit = credit
print("课程名:" + Course.name + " 课程学分:" + Course.credit)
def _reset_course(self, name, credit):
Course.name = name
Course.credit = credit
print("课程名:" + Course.name + " 课程学分:" + Course.credit)
class InformationSecurity(Course):
number_of_people = ' '
teacher = ' '
def _set_IS(self, number_of_people, teacher):
InformationSecurity.number_of_people = number_of_people
InformationSecurity.teacher = teacher
print(InformationSecurity.name + " 为" + InformationSecurity.credit + "学分课程,由"
+ InformationSecurity.teacher + "授课,课堂人数为" + InformationSecurity.number_of_people)
def _reset_course(self, name, credit, number_of_people, teacher):
InformationSecurity.name = name
InformationSecurity.credit = credit
InformationSecurity.number_of_people = number_of_people
InformationSecurity.teacher = teacher
print(InformationSecurity.name + " 为" + InformationSecurity.credit + "学分课程,由"
+ InformationSecurity.teacher + "授课,课堂人数为" + InformationSecurity.number_of_people)
cipher = Course("密码学", "4")
cipher._reset_course("密码分析学", "4")
Is1 = InformationSecurity("信息安全", "4")
Is1._set_IS("70", "张三")
Is1._reset_course("信息安全攻击","8","30","李四")
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。