12 2019 档案

摘要:方法的参数传入类型,和返回的结果类型 阅读全文
posted @ 2019-12-19 20:02 乘风去破浪 阅读(198) 评论(0) 推荐(0)
摘要:a = b = 1a = b = 2a = b = 3a = 4a = 5结束 阅读全文
posted @ 2019-12-15 17:27 乘风去破浪 阅读(1428) 评论(0) 推荐(0)
摘要:sui 阅读全文
posted @ 2019-12-14 13:32 乘风去破浪 阅读(90) 评论(0) 推荐(0)
摘要: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 乘风去破浪 阅读(466) 评论(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 乘风去破浪 阅读(1174) 评论(0) 推荐(0)