摘要:
['a', 'b']['a', 'b']{'name': 'alex', 'l': [1, 2, 3]} {'name': 'alex'}['a', 'b', 'c'] 阅读全文
posted @ 2018-07-19 07:47
一棵大树一棵小树一棵草
阅读(98)
评论(0)
推荐(0)
摘要:
> 中国------------------- 中国 > 中国-------------------实例 》 中国 阅读全文
posted @ 2018-07-19 07:25
一棵大树一棵小树一棵草
阅读(96)
评论(0)
推荐(0)
摘要:
class Chinese: country='China' def __init__(self,name): self.name=name def play_ball(self,ball): print('%s 正在打 %s' %(self.name,ball))p1=Chinese('alex' 阅读全文
posted @ 2018-07-19 06:55
一棵大树一棵小树一棵草
阅读(113)
评论(0)
推荐(0)
摘要:
class Chinese: "cdfgrgfrth" country='China' def __init__(self,name): self.name=name def play_ball(self,ball): print('%s 正在打 %s' %(self.name))#查看print( 阅读全文
posted @ 2018-07-19 04:50
一棵大树一棵小树一棵草
阅读(125)
评论(0)
推荐(0)
摘要:
实例字典不包括函数属性,因为实例化就是执行_init_函数,实例使用数据属性 所以他的函数作用域就是_init_函数 实例能访问类属性,但是累属性不能访实例属性, 阅读全文
posted @ 2018-07-19 04:04
一棵大树一棵小树一棵草
阅读(76)
评论(0)
推荐(0)
浙公网安备 33010602011771号