摘要:
1 # coding:utf-8 2 3 4 class Animal(object): 5 def __init__(self): 6 self._name = None 7 self._f = None 8 9 def eat(self): 10 print("%s吃%s" % (self._n 阅读全文
posted @ 2019-12-13 21:41
乘风去破浪
阅读(462)
评论(0)
推荐(0)
摘要:
1 class Cat(Animal): 2 def __init__(self): 3 import warnings 4 warnings.warn("Cat类带删除线了", DeprecationWarning) 5 6 def run(self): 7 import warnings 8 warnings.warn("run方法带删除线了", DeprecationWarning) 阅读全文
posted @ 2019-12-13 21:16
乘风去破浪
阅读(1170)
评论(0)
推荐(0)

浙公网安备 33010602011771号