Commit 61c47ec7 by BellCodeEditor

save project

parent ac795495
Showing with 18 additions and 15 deletions
class Cat:
def __init__(self):
self.footNum = 4 # 腿
self.eyeNum = 2 # 眼睛
self.head = 1 # 头
self.earsNum = 2 # 耳朵
self.skin = "black"
class sexx:
def __init__(self,c,k,g):
self.c = c
self.k = k
self.g = g
def run(self):
print("小猫飞快的跑起来")
def wed(self):
self.c = self.c
self.k = self.k
self.g = self.g
def skill():
??
role = Cat()
role.skill("老鼠")
\ No newline at end of file
i = int(input())
lo = int(input())
l = int(input())
houyi = sexx(i,lo,l)
houyi.wed()
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