Commit fc9a4ace by BellCodeEditor

auto save

parent a721ce8f
Showing with 8479 additions and 81 deletions
......@@ -4,7 +4,7 @@ class Dog: # 狗类
self.eyeNum = 2 # 眼睛
self.head = 1 # 头
self.earsNum = 2 # 耳朵
self.skin = "white"
self.skin = ""
def run(self):
print("狗狗飞快的跑起来")
......@@ -13,8 +13,8 @@ class Dog: # 狗类
class Husky(Dog): # 哈士奇类
def __init__(self):
super().__init__()
self.skin = "black"
coco = Husky()
print("coco是"+coco.skin+"色的,它有"+str(coco.footNum)+"条腿,"+str(coco.eyeNum)+"个眼睛"+str(coco.head)+"个头,"+str(coco.earsNum)+"个耳朵")
print(coco.run())
\ No newline at end of file
self.skin = "黑"
print("小狗coco创建成功,它是"+coco.size+"的")
print("coco是"+coco.skin+"色的,它有"+str(coco.footNum)+"条腿,"+str(coco.eyeNum)+"个眼睛"+str(coco.head)+"个头,"+str(coco.earsNum)+"个耳朵,它的体型很"+coco.size)
print(coco.run())
coco = Husky()
\ No newline at end of file
1 1
1 1
......@@ -26,75 +26,8473 @@
26 26
27 27
28 28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
\ No newline at end of file
29 29
30 30
31 31
32 32
33 33
34 34
35 35
36 36
37 37
38 38
39 39
40 40
41 41
42 42
43 43
44 44
45 45
46 46
47 47
48 48
49 49
50 50
51 51
52 52
53 53
54 54
55 55
56 56
57 57
58 58
59 59
60 60
61 61
62 62
63 63
64 64
65 65
66 66
67 67
68 68
69 69
70 70
71 71
72 72
73 73
74 74
75 75
76 76
77 77
78 78
79 79
80 80
81 81
82 82
83 83