reference: https://blog.csdn.net/weixin_44108880/article/details/89852905
"""
python2.7的写法
"""
class Tom(Animal):
def __init__(self):
'''第一种写法:python2的写法比较规整'''
super(Tom, self).__init__()
'''第二种写法'''
Animal(self),__init__()
'''python3的写法 python3的写法更加简洁'''
super().__init__()