Commit 61c47ec7 by BellCodeEditor

save project

parent ac795495
Showing with 18 additions and 15 deletions
class Cat: class sexx:
def __init__(self): def __init__(self,c,k,g):
self.footNum = 4 # 腿 self.c = c
self.eyeNum = 2 # 眼睛 self.k = k
self.head = 1 # 头 self.g = g
self.earsNum = 2 # 耳朵
self.skin = "black"
def run(self): def wed(self):
print("小猫飞快的跑起来") self.c = self.c
self.k = self.k
self.g = self.g
def skill(): i = int(input())
?? lo = int(input())
l = int(input())
role = Cat() houyi = sexx(i,lo,l)
role.skill("老鼠") houyi.wed()
\ No newline at end of file a = houyi.c * houyi.k
b = houyi.c * houyi.k * houyi.g
print("面积为:",a)
print("体积为:",b)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment