摘要:
result: 阅读全文
posted @ 2019-06-25 13:48
嵌入式实操
阅读(96)
评论(0)
推荐(0)
摘要:
resule: 阅读全文
posted @ 2019-06-25 13:30
嵌入式实操
阅读(662)
评论(0)
推荐(0)
摘要:
result: 阅读全文
posted @ 2019-06-25 13:24
嵌入式实操
阅读(142)
评论(0)
推荐(0)
摘要:
result : 阅读全文
posted @ 2019-06-25 13:17
嵌入式实操
阅读(97)
评论(0)
推荐(0)
摘要:
class Bird: def __init__(self): self.hungry = True def eat(self): if self.hungry: print('Aaaaah') self.hungry = False else: print('No. thanks')class S 阅读全文
posted @ 2019-06-25 11:37
嵌入式实操
阅读(341)
评论(0)
推荐(0)
摘要:
# 魔法方法class FooBar: def __init__(self, value = 42): self.samevalue = value 阅读全文
posted @ 2019-06-25 11:36
嵌入式实操
阅读(141)
评论(0)
推荐(0)
摘要:
result: 阅读全文
posted @ 2019-06-25 11:15
嵌入式实操
阅读(128)
评论(0)
推荐(0)
摘要:
多态(Polymorphism): 意味着可以对不同类的对象使用同样的操作 result: 封装(Encapsulation): 对外部隐藏对象的工作细节 "百灵鸟类"是“鸟类”的子类(subclass), 鸟类是百灵鸟类的超类(superclass) 不同的子类,在使用超类的方法时, 有可以会需要 阅读全文
posted @ 2019-06-25 10:59
嵌入式实操
阅读(184)
评论(0)
推荐(0)
摘要:
result: 阅读全文
posted @ 2019-06-25 10:09
嵌入式实操
阅读(157)
评论(0)
推荐(0)
摘要:
result: 阅读全文
posted @ 2019-06-25 10:01
嵌入式实操
阅读(213)
评论(0)
推荐(0)
摘要:
result: 阅读全文
posted @ 2019-06-25 09:53
嵌入式实操
阅读(11807)
评论(0)
推荐(1)
摘要:
为了解决能处理关键字参数的‘收集’操作 result: 返回的是字典而不是元组。 阅读全文
posted @ 2019-06-25 09:51
嵌入式实操
阅读(206)
评论(0)
推荐(0)
摘要:
result: 关键参数的厉害地方在于可以在函数中提供默认参数 阅读全文
posted @ 2019-06-25 09:24
嵌入式实操
阅读(170)
评论(0)
推荐(0)
摘要:
result: 记住:字符串,数字, 元组是不可变的,即无法修改的。 阅读全文
posted @ 2019-06-25 09:19
嵌入式实操
阅读(1197)
评论(0)
推荐(0)
摘要:
>>> def square(x): ... 'calculates the square of the number x.' ... return x*x ... >>> square.__doc__ 'calculates the square of the number x.' >>> help(square) Help on function square in mod... 阅读全文
posted @ 2019-06-25 08:52
嵌入式实操
阅读(767)
评论(0)
推荐(0)
浙公网安备 33010602011771号