python 继承练习

# 2.super的使用:
# 定义一个类A, 里面又一个方法print_info
# 定义一个类B, 里边有一个方法print_info和一个方法say_something
# 定义一个类C, 里边有一个方法say_something
# 定义一个类D, 里边有一个方法print_info和一个方法say_something
# 定义一个类E,继承类A, 类B, 类C,类D



class A:

    def print_info(self):
        print("A")


class B:
    def print_info(self):
        print("B")

    def say_something(self):
        print(

你可能感兴趣的:(python)