Commit 4d23fdf0 by BellCodeEditor

save project

parent b7e5cd13
Showing with 11 additions and 3 deletions
...@@ -2,7 +2,7 @@ class Herro: ...@@ -2,7 +2,7 @@ class Herro:
def__init__(shelf): def__init__(shelf):
shelf.level=1 shelf.level=1
shelf.hp=300 shelf.hp=300
shelf.attack=20 shelf.attack=20
yase = Herro() yase = Herro()
print(shelf.hp) print(shelf.hp)
class Herro:
def__init__(self,name,hp,attack):
self.name=name
self.level=1
self.hp=hp
self.attack=attack
yase=("亚瑟",300,20)
houyi=("后羿",250,23)
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