python继承
摘要:
# 类的多层继承 class Granddad(): # 太爷爷 business1 = "他本家境优渥,他的太爷爷白手做纱布生意白手起家。" class Grandpa(Granddad): # 爷爷,继承太爷爷 business2 = "到了他爷爷这一代,生意进一步扩大,新增了药店生意、钱庄生意 阅读全文
posted @ 2020-12-07 13:42 Tester十点半 阅读(54) 评论(0) 推荐(0) 编辑