posted @ 2019-05-15 23:54 saber゛ Views(179) Comments(0) Diggs(0) Edit
posted @ 2019-05-15 00:40 saber゛ Views(196) Comments(0) Diggs(0) Edit
posted @ 2019-05-15 00:39 saber゛ Views(150) Comments(0) Diggs(0) Edit
posted @ 2019-05-15 00:38 saber゛ Views(158) Comments(0) Diggs(0) Edit
posted @ 2019-05-14 00:36 saber゛ Views(190) Comments(0) Diggs(0) Edit
posted @ 2019-05-10 02:10 saber゛ Views(201) Comments(0) Diggs(0) Edit
__getitem__,__setitem__,__delitem__ 类似 attr 方法,不同的是item方法使用【】 Read More
posted @ 2019-05-10 01:21 saber゛ Views(191) Comments(0) Diggs(0) Edit
#封装:区分内外,使得外部不能直接看到内部具体信息,但内部可以正常看到 class People: _star = "earth" #在类中以单下划线开头的属性,按照约定是作为隐藏的属性,为私有的,类的外部是不应该调用的 __country = "china" #在类中以双下划线开头的属性,Pyth Read More
posted @ 2019-05-10 00:45 saber゛ Views(648) Comments(0) Diggs(0) Edit
posted @ 2019-05-08 00:30 saber゛ Views(193) Comments(0) Diggs(0) Edit
posted @ 2019-05-07 22:35 saber゛ Views(178) Comments(0) Diggs(0) Edit