python.SchoolMem

class Rectangle:
    def __init__(self,New_zxx,New_zxy,New_ysx,New_ysy):
        self.zxx=New_zxx
        self.zxy=New_zxy
        self.ysx=New_ysx
        self.ysy=New_ysy
        self.length = self.ysx - self.zxx
        self.width = self.ysy - self.zxy
    def perimeter(self):
        print('周长:{}'.format(2*(self.length+self.width)))
    def area(self):
        print('面积为:{}'.format(self.length*self.width))
 
a = Rectangle(0,0,1,2)
print(a.length)
print(a.width)
a.perimeter()
a.area()
class SchoolMem:
    def __init__(self,name,sex,age):
        self.name=name
        self.sex = sex
        self.age = age
 
    def Alter(self):
        self.name = input('姓名')
        self.sex = input('性别')
        self.age = input('年龄')
    def PrintInfo(self):
        print(self.name)
        print(self.sex)
        print(self.age)
class Student(SchoolMem):
    total = 0
    def __init__(self,name,sex,age,cno,sno):
        super().__init__(name,sex,age)
        self.cno = cno
        self.sno = sno
        Student.total+=1
    def Alter(self):
        self.cno = input('输入学生所属班级:')
        self.sno = input('输入学生学号:')
    def PrintInfo(self):
        super(Student, self).PrintInfo()
        print(self.cno)
        print(self.sno)
 
class Teacher(SchoolMem):
    total = 0
    def __init__(self,name,sex,age,cono,jno):
        super().__init__(name, sex, age)
        self.cono = cono
        self.jno = jno
        Teacher.total +=1
    def Alter(self):
        self.cono = input('输入老师所属学院:')
        self.jno = input('输入老师工号:')
    def PrintInfo(self):
        super(Teacher, self).PrintInfo()
        print(self.cono)
        print(self.jno)
a=Student('张三','男','18',5,1902073564)
a.PrintInfo()
b=Teacher('李四','男','30',2,1351332)
b.PrintInfo()
已标记关键词 清除标记
相关推荐
<p> <strong><span style="font-size:16px;color:#003399;">会用Python分析金融数据 or 金融行业会用Python</span></strong> </p> <p> <strong><span style="font-size:16px;color:#003399;">职场竞争力更高</span></strong> </p> <p> <br /> </p> <p> <img src="https://img-bss.csdnimg.cn/202012231042221925.png" alt="" /> </p> <p> <br /> </p> <p> <br /> </p> <p> <strong><span style="font-size:16px;color:#003399;">Python金融数据分析入门到实战</span></strong> </p> <p> <strong><span style="font-size:16px;color:#003399;">Get√金融行业数据分析必备技能</span></strong> </p> <p> <img src="https://img-bss.csdnimg.cn/202012231042438069.png" alt="" /> </p> <p> <br /> </p> <p> <br /> </p> <p> <strong><span style="font-size:16px;color:#003399;">以股票量化交易为应用场景</span></strong> </p> <p> <strong><span style="font-size:16px;color:#003399;">完成技术指标实现的全过程</span></strong> </p> <p> <br /> </p> <p> <span style="font-size:14px;">课程选取股票量化交易为应用场景,由股票数据的获取、技术指标的实现,逐步进阶到策略的设计</span><span style="font-size:14px;">和回测,由浅入深、由技术到思维地为同学们讲解Python金融数据分析在股票量化交易中的应用</span><span style="font-size:14px;">。</span> </p> <p> <br /> </p> <p> <span style="font-size:14px;"><br /> </span> </p> <p> <img src="https://img-bss.csdnimg.cn/202012231043183686.png" alt="" /> </p> <p> <br /> </p> <p> <br /> </p> <p> <strong><span style="font-size:16px;color:#003399;">以Python为编程语言</span></strong> </p> <p> <strong><span style="font-size:16px;color:#003399;">解锁3大主流数据分析工具</span></strong> </p> <p> <br /> </p> <p> <span style="font-size:14px;">Python做金融具有先天优势,课程提取了Python数据分析工具NumPy、Pandas及可视化工具</span><span style="font-size:14px;">Matplotlib的关键点详细讲解,帮助同学掌握数据分析的关键技能。</span> </p> <p> <img src="https://img-bss.csdnimg.cn/202012231043472858.png" alt="" /> </p> <p> <strong><span style="font-size:16px;color:#003399;"><br /> </span></strong> </p> <p> <strong><span style="font-size:16px;color:#003399;">2大购课福利</span></strong> </p> <p> <strong><span style="font-size:16px;color:#003399;"><br /> </span></strong> </p> <p> <img src="https://img-bss.csdnimg.cn/202012300628195864.png" alt="" /> </p>
©️2020 CSDN 皮肤主题: 护眼 设计师:闪电赇 返回首页
实付 19.90元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值