Commit 2a4bb3c6 by BellCodeEditor

save project

parent 70850cf8
Showing with 13 additions and 0 deletions
class Cat:
def __init__(self,name,age,hp,attack):
self.level=1
self.name=name
self.age=age
self.hp=hp
self.attask=attack
XiYangYang=Cat("喜羊羊",35,900,100)
MeiYangYang=Cat("美羊羊",30,890,95)
print(XiYangYang.hp)
print(MeiYangYang.hp)
\ No newline at end of file
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