Commit 9b01cd78 by BellCodeEditor

save project

parent a80fc4b4
Showing with 9 additions and 5 deletions
class take: class cake:
def __init__(self,chicun,fruit,naiyuo): def __init__(self,chicun,fruit,naiyuo):
self.chicun=12 self.chicun=chicun
self.fruit=apple self.fruit=fruit
self.naiyuo=32 self.naiyou=naiyuo
take=hero("蛋糕",90,100) cake=cake("蛋糕","apple",100)
print("尺寸"+str(cake.chicun))
print("水果是"+str(cake.fruit))
print("奶油是"+str(cake.naiyuo))
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